Browse Source

Fixed bin/sde-list-files to give priority to $PWD relative items

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
dc753dc3b2
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      bin/sde-list-files

+ 3
- 3
bin/sde-list-files

@ -84,6 +84,9 @@ for x; do
if [ "$x" = "." ]; then
# $PWD, explicitly
y="$PWD"
elif [ -e "$PWD/$x" ]; then
# $PWD relative
y="$PWD/$x"
elif [ "${x:0:1}" = "/" -a -e "$x" ]; then
# absolute
y="$x"
@ -96,9 +99,6 @@ for x; do
elif [ -e "$SDEROOT/$x" ]; then
# $SDEROOT relative
y="$SDEROOT/$x"
else [ -e "$x" ]
# $PWD relative
y="$PWD/$x"
fi
# canonicalize

Loading…
Cancel
Save