summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xeasy_e17.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/easy_e17.sh b/easy_e17.sh
index ce17f2a..3f82101 100755
--- a/easy_e17.sh
+++ b/easy_e17.sh
@@ -1013,7 +1013,10 @@ function find_local_path ()
else
dirs=$(cat $tmpf)
fi
- path=$(echo $dirs | while read line; do echo $(echo $line | grep -o '/' | wc -l) $line; done | sort -n | head -n 1 | cut -d " " -f 2)
+ echo " ** SORT" >> $tmpf
+ echo -e "$dirs" | while read line; do echo $(echo $line | grep -o '/' | wc -l) $line; done | sort -n >> $tmpf
+ path=$(echo -e "$dirs" | while read line; do echo $(echo $line | grep -o '/' | wc -l) $line; done | sort -n | head -n 1 | cut -d " " -f 2)
+ echo -e " ** FOUND\n$path" >> $tmpf
if [ "$path" ]; then echo "$src_path/$path"; fi
}