From 9d29ec94fc5612b527f9193651829d96fc4190cc Mon Sep 17 00:00:00 2001 From: krempp Date: Wed, 31 May 2000 14:42:47 +0200 Subject: [PATCH] teste si le rep courant contien 'scripts', en plus de etc, pour commiter dans /usr/scripts.. darcs-hash:20000531124247-92525-b68638905d38f248cbf596cbd71d31cd8bd6ccb7.gz --- supers/etccommit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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