about summary refs log tree commit diff
path: root/scripts/nix-copy-closure.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-03-01T13·55+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-03-01T13·55+0000
commitdf0283ae86afd1a40a83b2abc3705146ab0a6cb8 (patch)
treea5874f55c43e061ccc5c33668d68866c2ad05cb6 /scripts/nix-copy-closure.in
parent30394a4f3f99ccfffb6935b47433c320f00e2a67 (diff)
* Get rid of those stupid --login tricks, it's the responsibility of
  the remote system to make sure that Nix is in the $PATH.

Diffstat (limited to 'scripts/nix-copy-closure.in')
-rw-r--r--scripts/nix-copy-closure.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/nix-copy-closure.in b/scripts/nix-copy-closure.in
index b0fb1b2b8df5..f29476d5617f 100644
--- a/scripts/nix-copy-closure.in
+++ b/scripts/nix-copy-closure.in
@@ -62,7 +62,7 @@ while (@ARGV) {
 
 
 # Ask the remote host which paths are invalid.
-open(READ, "ssh @sshOpts $sshHost bash --login -c '\"nix-store --check-validity --print-invalid @storePaths\"'|");
+open(READ, "ssh @sshOpts $sshHost nix-store --check-validity --print-invalid @storePaths|");
 my @missing = ();
 while (<READ>) {
     chomp;
@@ -76,6 +76,6 @@ close READ or die;
 if (scalar @missing > 0) {
     my $extraOpts = "";
     $extraOpts .= "--sign" if $sign == 1;
-    system("nix-store --export $extraOpts @missing | $compressor | ssh @sshOpts $sshHost bash --login -c '\"$decompressor | nix-store --import\"'") == 0
+    system("nix-store --export $extraOpts @missing | $compressor | ssh @sshOpts $sshHost '$decompressor | nix-store --import'") == 0
         or die "copying store paths to remote machine failed: $?";
 }