Fix exit code check
This commit is contained in:
parent
f7829e5500
commit
52e3538c2d
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ array-sum () {
|
|||
|
||||
# Given two exit codes, print a nonzero one if there is one
|
||||
exit-code () {
|
||||
if [ "$1" -ne 0 ]; then
|
||||
if [[ "$1" != "0" ]]; then
|
||||
echo "$1"
|
||||
else
|
||||
if [[ "$2" == "" ]]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue