diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-08-29 13:55:24 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-08-29 13:55:24 +0000 |
commit | 66355b4ef3ffcc0c078abb4aaea095bfe2876df2 (patch) | |
tree | 720e68487882ef2a9988bbab06c1c73b5ed3885c /profile.d | |
parent | b69f3860b435cba6938649738c517952507826a4 (diff) | |
download | msec-66355b4ef3ffcc0c078abb4aaea095bfe2876df2.tar msec-66355b4ef3ffcc0c078abb4aaea095bfe2876df2.tar.gz msec-66355b4ef3ffcc0c078abb4aaea095bfe2876df2.tar.bz2 msec-66355b4ef3ffcc0c078abb4aaea095bfe2876df2.tar.xz msec-66355b4ef3ffcc0c078abb4aaea095bfe2876df2.zip |
added support for configuring inclusion of current directory into path
Diffstat (limited to 'profile.d')
-rwxr-xr-x | profile.d/msec.csh | 16 | ||||
-rwxr-xr-x | profile.d/msec.sh | 4 |
2 files changed, 5 insertions, 15 deletions
diff --git a/profile.d/msec.csh b/profile.d/msec.csh index 0a6bd70..5ff87ab 100755 --- a/profile.d/msec.csh +++ b/profile.d/msec.csh @@ -24,19 +24,9 @@ endif # using unhash *after modifying PATH* fixes the pb # So while modifying the PATH, do not rely on the PATH until unhash is done -if ! { (echo "${PATH}" | /bin/grep -q /usr/X11R6/bin) } then - setenv PATH "${PATH}:/usr/X11R6/bin" -endif - -if ! { (echo "${PATH}" | /bin/grep -q /usr/games) } then - setenv PATH "${PATH}:/usr/games" -endif - -if ( ${?SECURE_LEVEL} ) then - if ( ${SECURE_LEVEL} <= 1 ) then - if ! { (echo "${PATH}" | /bin/fgrep -q :.) } then - setenv PATH "${PATH}:." - endif +if ( ${?ALLOW_CURDIR_IN_PATH} == 'yes' ) then + if ! { (echo "${PATH}" | /bin/fgrep -q :.) } then + setenv PATH "${PATH}:." endif endif diff --git a/profile.d/msec.sh b/profile.d/msec.sh index 288d72b..76508ae 100755 --- a/profile.d/msec.sh +++ b/profile.d/msec.sh @@ -18,8 +18,8 @@ else fi fi -if [ -n "$SECURE_LEVEL" ]; then - if [ "$SECURE_LEVEL" -le 1 ] && ! echo ${PATH} | fgrep -q :.; then +if [ "$ALLOW_CURDIR_IN_PATH" == "yes" ]; then + if ! echo ${PATH} | fgrep -q :.; then export PATH=$PATH:. fi fi |