From: b3nj4m1n Date: Sun, 6 Nov 2022 04:16:04 +0000 (+0100) Subject: Cap exit code at 101 X-Git-Tag: v0.2.0.2~126 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/e0a4c3e4a70b7c785eff56f96af999ad6af8fe86 Cap exit code at 101 --- diff --git a/xdg-ninja.sh b/xdg-ninja.sh index 0e162e0..8a0ff98 100755 --- a/xdg-ninja.sh +++ b/xdg-ninja.sh @@ -233,6 +233,9 @@ check_programs() { printf "\n" } - check_programs -exit $FIXABLE +if [ $FIXABLE -gt 100 ]; then + exit 101 +else + exit $FIXABLE +fi