Commit b6332f6a authored by Mike Hibler's avatar Mike Hibler
Browse files

Check the return value of system() rather than its exit status;

i.e., we want the exit code of the program run by system.
parent e3ffd3c9
......@@ -227,10 +227,10 @@ sub mysystem($)
else {
print "'$command'\n";
if ($?) {
my $rv = system($command);
if ($rv) {
die("*** $0:\n".
" Failed: '$command'\n");
" Failed ($rv): '$command'\n");
return 0
Supports Markdown
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