mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-10 03:50:33 +03:00
add test for DEBUG upon startup
This commit is contained in:
parent
4e71a3c264
commit
2e2694f309
@ -96,6 +96,11 @@ config_check () {
|
||||
if [ -e $HOME/.sbopkg.conf ]; then
|
||||
. $HOME/.sbopkg.conf
|
||||
fi
|
||||
if [[ "$DEBUG" -ne "0" && "$DEBUG" -ne "1" && "$DEBUG" -ne "2" ]]; then
|
||||
echo "The \$DEBUG variable must be set to 0, 1, or 2."
|
||||
echo $DEBUG
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user