aboutsummaryrefslogtreecommitdiffstats
path: root/msec.sh
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-02-15 05:21:32 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-02-15 05:21:32 +0000
commit467f00663539340214c4def74ae040b4795b5ed0 (patch)
treea6657c8f6db6aa16eb224b2853745fee522f8ad2 /msec.sh
parenta708784cdc9dca1067afee260dad239471cc3d6d (diff)
downloadmsec-467f00663539340214c4def74ae040b4795b5ed0.tar
msec-467f00663539340214c4def74ae040b4795b5ed0.tar.gz
msec-467f00663539340214c4def74ae040b4795b5ed0.tar.bz2
msec-467f00663539340214c4def74ae040b4795b5ed0.tar.xz
msec-467f00663539340214c4def74ae040b4795b5ed0.zip
test SECURE_LEVEL before using it as a number
Diffstat (limited to 'msec.sh')
-rwxr-xr-xmsec.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/msec.sh b/msec.sh
index dd3a429..c1a45ac 100755
--- a/msec.sh
+++ b/msec.sh
@@ -34,7 +34,7 @@ if ! echo ${PATH} |grep -q /usr/games ; then
export PATH=$PATH:/usr/games
fi
-if [ "$SECURE_LEVEL" -le 1 ] && ! echo ${PATH} | fgrep -q :.; then
+if [ -n "$SECURE_LEVEL" -a "$SECURE_LEVEL" -le 1 ] && ! echo ${PATH} | fgrep -q :.; then
export PATH=$PATH:.
fi