add test for DEBUG upon startup

This commit is contained in:
chess.griffin 2009-01-24 16:12:12 +00:00
parent 4e71a3c264
commit 2e2694f309

View File

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