Skip to content
Snippets Groups Projects
Commit c51b6a89 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

nix-copy-closure: Show a proper error message if no host name is given

parent e6c44d16
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,8 @@ while (@ARGV) { ...@@ -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"; openSSHConnection $sshHost or die "$0: unable to start SSH\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment