mirror of
https://github.com/sbopkg/sbopkg
synced 2025-01-18 10:26:27 +01:00
add test for DEBUG upon startup
This commit is contained in:
parent
4e71a3c264
commit
2e2694f309
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue