summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-24 14:43:29 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-24 14:43:29 +0200
commit9fb6c9e5c8b506a25d1629b05729e1742314652e (patch)
tree153f4b0433dd865084bcf736bffbe67aa46d877b
parent9925e00668765b1e9d176b8de22e65a6e9d5ea3b (diff)
downloadbin-9fb6c9e5c8b506a25d1629b05729e1742314652e.zip
bin-9fb6c9e5c8b506a25d1629b05729e1742314652e.tar.gz
easy_e17.sh: fix find_local_path
-rwxr-xr-xeasy_e17.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/easy_e17.sh b/easy_e17.sh
index ca33b9f..80fcfc5 100755
--- a/easy_e17.sh
+++ b/easy_e17.sh
@@ -944,7 +944,7 @@ function run_command ()
function find_local_path ()
{
name=$1
- path=$(find $src_path -maxdepth 5 -type d -name $pkg | grep -v -E "^${src_path}$" | grep -v -E '$ignore_dirs_re' | \
+ path=$(find $src_path -maxdepth 5 -type d -name $pkg | grep -v -E "^${src_path}$" | grep -v -E "$ignore_dirs_re" | \
while read line; do echo `echo $line | wc -c` $line; done | sort -n | head -n 1 | cut -d " " -f 2)
if [ "$path" ]; then echo "$path"; fi
}