From 2e2694f309f8ef4372d360cb37e512bac2400f31 Mon Sep 17 00:00:00 2001 From: "chess.griffin" Date: Sat, 24 Jan 2009 16:12:12 +0000 Subject: [PATCH] add test for DEBUG upon startup --- src/usr/bin/sbopkg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/usr/bin/sbopkg b/src/usr/bin/sbopkg index ed063d1..64d64f5 100755 --- a/src/usr/bin/sbopkg +++ b/src/usr/bin/sbopkg @@ -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 }