teste si le rep courant contien 'scripts', en plus de etc,
pour commiter dans /usr/scripts.. darcs-hash:20000531124247-92525-b68638905d38f248cbf596cbd71d31cd8bd6ccb7.gz
This commit is contained in:
parent
d40a4d902f
commit
9d29ec94fc
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ LOGNAME=$ORIG_LOGNAME
|
||||||
|
|
||||||
cur=$(pwd)
|
cur=$(pwd)
|
||||||
echo $cur
|
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
|
echo switching dir to /etc
|
||||||
cd /etc
|
cd /etc
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue