Commit 8766330a authored by Srikanth Raju's avatar Srikanth Raju Committed by Leigh B Stoller
Browse files

Early check for unzip

parent 62aa126e
......@@ -126,12 +126,13 @@ if(system("scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ".
# Check if Ruby exists
if(system("ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ".
"$remote 'which ruby'")){
print STDERR "*** Could not find ruby on remote machine!";
"$remote 'which ruby unzip'")){
print STDERR "*** Could not find either ruby or unzip on remote machine!";
$error = 1;
goto cleanup;
}
if(system("ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ".
"-t -t $remote 'sudo ruby -C ~/.emulab < ~/.emulab/export.rb'")){
print STDERR "*** Remote image creation failed\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment