Make $? compatible with set -e in system tests
Ensure handling of return code from previous command doesn't cause the script to halt if that code is non-zero when running with `set -e`.
This commit is contained in:
@@ -24,8 +24,7 @@ israw () {
|
||||
$PERL -e 'binmode STDIN;
|
||||
read(STDIN, $input, 8);
|
||||
($style, $version) = unpack("NN", $input);
|
||||
exit 1 if ($style != 2 || $version > 1);' < "$1"
|
||||
return $?
|
||||
exit 1 if ($style != 2 || $version > 1);' < "$1" || return $?
|
||||
}
|
||||
|
||||
isfull () {
|
||||
|
||||
Reference in New Issue
Block a user