From 9fb6c9e5c8b506a25d1629b05729e1742314652e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 24 Jun 2011 14:43:29 +0200 Subject: easy_e17.sh: fix find_local_path --- easy_e17.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.1-2-g2b99