diff --git a/bin/sde-list-files b/bin/sde-list-files index 7174f45..4f7e1c2 100755 --- a/bin/sde-list-files +++ b/bin/sde-list-files @@ -81,7 +81,10 @@ print_file_root() { for x; do 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 y="$x" elif [ -e "$SDEROOT/package"/*/"$x" ]; then