From 0b1fa3ce489599361518b5407b3aaf8e93221021 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 6 Dec 2007 19:54:32 -0500 Subject: [PATCH] Fixed bin/sde-list-files to handle the '.' correctly --- bin/sde-list-files | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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