about summary refs log tree commit diff
path: root/scripts/nix-copy-closure.in
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-05-03T09·12+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-05-03T09·12+0200
commitc51b6a893ca6fcce86b40c4852cfa7f0ce3065fd (patch)
tree07963951734858a4e895399bc0debce746b5b644 /scripts/nix-copy-closure.in
parente6c44d166a63abe95a02382386246acea8757951 (diff)
nix-copy-closure: Show a proper error message if no host name is given
Diffstat (limited to 'scripts/nix-copy-closure.in')
-rwxr-xr-xscripts/nix-copy-closure.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/nix-copy-closure.in b/scripts/nix-copy-closure.in
index 9536ee84d89b..23d5619519a4 100755
--- a/scripts/nix-copy-closure.in
+++ b/scripts/nix-copy-closure.in
@@ -78,6 +78,8 @@ while (@ARGV) {
     }
 }
 
+die "$0: you did not specify a host name\n" unless defined $sshHost;
+
 
 openSSHConnection $sshHost or die "$0: unable to start SSH\n";