From c51b6a893ca6fcce86b40c4852cfa7f0ce3065fd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 3 May 2013 11:12:11 +0200 Subject: [PATCH] nix-copy-closure: Show a proper error message if no host name is given --- scripts/nix-copy-closure.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/nix-copy-closure.in b/scripts/nix-copy-closure.in index 9536ee84d..23d561951 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";