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
|
||||
LOGNAME=$ORIG_LOGNAME
|
||||
|
||||
cd /etc
|
||||
echo "logname : " $LOGNAME
|
||||
cur=$(pwd)
|
||||
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`
|
||||
# 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..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue