aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2001-12-05 03:52:14 +0000
committerFrederic Lepied <flepied@mandriva.com>2001-12-05 03:52:14 +0000
commit512114db941e94cf9baaaadeaba4aa9f71660d00 (patch)
tree85bbae8ca4b7f7e44105825b0b785d52ec1eeb41
parent281e8832a8e5216ee8778e8d414af4881212f969 (diff)
downloadmsec-512114db941e94cf9baaaadeaba4aa9f71660d00.tar
msec-512114db941e94cf9baaaadeaba4aa9f71660d00.tar.gz
msec-512114db941e94cf9baaaadeaba4aa9f71660d00.tar.bz2
msec-512114db941e94cf9baaaadeaba4aa9f71660d00.tar.xz
msec-512114db941e94cf9baaaadeaba4aa9f71660d00.zip
test the existence of /etc/sysconfig/msec before sourcing it.
-rwxr-xr-xmsec.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/msec.sh b/msec.sh
index 148fe9e..759fc18 100755
--- a/msec.sh
+++ b/msec.sh
@@ -1,4 +1,6 @@
-. /etc/sysconfig/msec
+if [ -r /etc/sysconfig/msec ]; then
+ . /etc/sysconfig/msec
+fi
if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
export PATH=$PATH:/usr/X11R6/bin