Browse Source

Fixed bin/sde-list-files to handle the '.' correctly

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

+ 4
- 1
bin/sde-list-files

@ -81,7 +81,10 @@ print_file_root() {
for x; do for x; do
y= y=
if [ "${x:0:1}" == "/" -a -e "$x" ]; then
if [ "$x" == "." ]; then
# $PWD, explicitly
y="$PWD"
elif [ "${x:0:1}" == "/" -a -e "$x" ]; then
# absolute # absolute
y="$x" y="$x"
elif [ -e "$SDEROOT/package"/*/"$x" ]; then elif [ -e "$SDEROOT/package"/*/"$x" ]; then

Loading…
Cancel
Save