teste si le rep courant contient "etc", sinon fait cd /etc.
darcs-hash:20000531092831-92525-4de36e376177e67c36215bdda50e7e2962d599d3.gz
This commit is contained in:
parent
7cc445a6b2
commit
f86e483445
1 changed files with 8 additions and 2 deletions
|
@ -14,8 +14,14 @@ USER=$ORIG_USER
|
||||||
USERNAME=$USER
|
USERNAME=$USER
|
||||||
LOGNAME=$ORIG_LOGNAME
|
LOGNAME=$ORIG_LOGNAME
|
||||||
|
|
||||||
cd /etc
|
cur=$(pwd)
|
||||||
echo "logname : " $LOGNAME
|
echo $cur
|
||||||
|
if test "X${cur##/etc}" = "X$cur" ; then #il ya pas 'etc' ds le rep courant.
|
||||||
|
echo switching dir to /etc
|
||||||
|
cd /etc
|
||||||
|
fi
|
||||||
|
|
||||||
|
#echo "logname : " $LOGNAME
|
||||||
echo "who am i :" `who am i`
|
echo "who am i :" `who am i`
|
||||||
# en fait j'ai l'impression que ttes les variables sont ignorées par cvs.
|
# en fait j'ai l'impression que ttes les variables sont ignorées par cvs.
|
||||||
# qd on est root, il récupere le vrai user par "who am i", ie par le owner du TTY..
|
# qd on est root, il récupere le vrai user par "who am i", ie par le owner du TTY..
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue