diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-05-03T09·12+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-05-03T09·12+0200 |
commit | c51b6a893ca6fcce86b40c4852cfa7f0ce3065fd (patch) | |
tree | 07963951734858a4e895399bc0debce746b5b644 /scripts/nix-copy-closure.in | |
parent | e6c44d166a63abe95a02382386246acea8757951 (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-x | scripts/nix-copy-closure.in | 2 |
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"; |