1
0
mirror of synced 2026-04-28 05:04:57 +00:00

Fix for the exit code reporting in case of error

This commit is contained in:
Yuri Sakhno
2016-04-16 21:45:00 +03:00
committed by Axel Beckert
parent 7e7feb49b5
commit fa276179d8

View File

@@ -246,7 +246,8 @@ sub runCommand ($$;$)
if (!$rcclose)
{
logprint_with_config("Running command '$cmd' failed with exit code $?.\n", $CONFIG);
my $exit_code = $? >> 8;
logprint_with_config("Running command '$cmd' failed with exit code $exit_code.\n", $CONFIG);
logprint_with_config("Aborting\n", $CONFIG);
print "See /var/log/xen-tools/".$CONFIG->{'hostname'}.".log for details\n";
unless ($fail_ok) {