Fix exit code check

This commit is contained in:
Nicolas Chan 2021-03-04 14:25:42 -08:00
parent f7829e5500
commit 52e3538c2d

View file

@ -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