Otherwise cleaning up by doing some system() calls garbles $? with
unwanted values.
Bugs to fix before next release
-------------------------------
-* Exit code of a failed xen-create-image run seems still to be 0, at
- least in some cases.
+[None so far]
Bugs to fix rather soon
-----------------------
END
{
- exit 0 if $VERSION || $HELP || $MANUAL || $DUMPCONFIG;
+ # Capture exit code
+ my $exitcode = $?;
+
+ exit $exitcode if $VERSION || $HELP || $MANUAL || $DUMPCONFIG;
my $host_rsa_key = '';
#
}
logprint("\n");
}
+
+ exit $exitcode;
}