changed homefromsubdir a little
This commit is contained in:
parent
7be2815cbc
commit
c33f7cbe76
|
@ -1,11 +1,11 @@
|
|||
if [ $# = 1 ]
|
||||
then
|
||||
NAM=`expr $1 : '^\(\..*\)'`
|
||||
if [ X$NAM = X ]
|
||||
NAM=`expr $1 : '^\(\/.*\)'`
|
||||
if [ X$NAM != X ]
|
||||
then
|
||||
NAM=$1
|
||||
else
|
||||
NAM=../$NAM
|
||||
NAM=../$1
|
||||
fi
|
||||
echo $NAM
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue