mirror of
https://github.com/sbopkg/sbopkg
synced 2025-01-30 20:34:23 +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
|
if [ -e $HOME/.sbopkg.conf ]; then
|
||||||
. $HOME/.sbopkg.conf
|
. $HOME/.sbopkg.conf
|
||||||
fi
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue