diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-12-28 11:01:03 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-12-28 11:01:03 +0100 |
commit | 5196c1ad9af6b0c045efecdb75f6228775e35cb0 (patch) | |
tree | 5e4c533ff3697380955a2c52dc72ac1767640fbf /easy_e17.sh | |
parent | 0e6ac7bd56ee72814fcfc6013b6cb51fc5578757 (diff) | |
download | bin-5196c1ad9af6b0c045efecdb75f6228775e35cb0.zip bin-5196c1ad9af6b0c045efecdb75f6228775e35cb0.tar.gz |
easy_e17.sh: fix find_local_path
Diffstat (limited to 'easy_e17.sh')
-rwxr-xr-x | easy_e17.sh | 5 |
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 } |