diff --git a/supers/etccommit b/supers/etccommit index afb72ab2..0be454c7 100755 --- a/supers/etccommit +++ b/supers/etccommit @@ -16,7 +16,8 @@ LOGNAME=$ORIG_LOGNAME cur=$(pwd) echo $cur -if test "X${cur##/etc}" = "X$cur" ; then #il ya pas 'etc' ds le rep courant. +if test "X${cur//etc/TOTO}" = "X$cur" && test "X${cur//scripts/TOTO}" = "X$cur"; +then #il ya pas 'etc' ou 'scripts' ds le rep courant. echo switching dir to /etc cd /etc fi