aboutsummaryrefslogtreecommitdiffstats
path: root/msec.sh
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-03-04 19:19:14 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-03-04 19:19:14 +0000
commit2dc95fc3d3051c936ab1848c34130bf0289bbfb9 (patch)
tree7874b3e68b4fe92dc84bafc53d27b0a20b8890ae /msec.sh
parent5a34a6a710394e6fc63c8c65b8fc6976ba4e78cf (diff)
downloadmsec-2dc95fc3d3051c936ab1848c34130bf0289bbfb9.tar
msec-2dc95fc3d3051c936ab1848c34130bf0289bbfb9.tar.gz
msec-2dc95fc3d3051c936ab1848c34130bf0289bbfb9.tar.bz2
msec-2dc95fc3d3051c936ab1848c34130bf0289bbfb9.tar.xz
msec-2dc95fc3d3051c936ab1848c34130bf0289bbfb9.zip
more robust if SECURE_LEVEL isn't set.
Diffstat (limited to 'msec.sh')
-rwxr-xr-xmsec.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/msec.sh b/msec.sh
index 4ab8399..c4c9c0e 100755
--- a/msec.sh
+++ b/msec.sh
@@ -26,8 +26,10 @@ else
fi
fi
-if [ -n "$SECURE_LEVEL" -a "$SECURE_LEVEL" -le 1 ] && ! echo ${PATH} | fgrep -q :.; then
- export PATH=$PATH:.
+if [ -n "$SECURE_LEVEL" ]; then
+ if [ "$SECURE_LEVEL" -le 1 ] && ! echo ${PATH} | fgrep -q :.; then
+ export PATH=$PATH:.
+ fi
fi
export SECURE_LEVEL