[PATCH 46/50] fixed library-matching regex

Forgot about /lib64
master
Victor Lowther 2009-02-13 04:43:21 -08:00 committed by Dave Jones
parent aeaaa812d2
commit bff8c33c2b
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ inst_binary() {
[[ -f $initdir$target ]] && return 0 [[ -f $initdir$target ]] && return 0
# I love bash! # I love bash!
while read line; do while read line; do
[[ $line =~ '([^ ]*/lib/[^ ]*\.so[^ ]*|not found)' ]] || continue [[ $line =~ '([^ ]*/lib[^/]*/[^ ]*\.so[^ ]*|not found)' ]] || continue
FILE=${BASH_REMATCH[1]} FILE=${BASH_REMATCH[1]}
[[ $FILE = 'not found' ]] && { [[ $FILE = 'not found' ]] && {
echo "Missing a shared library required by $bin." >&2 echo "Missing a shared library required by $bin." >&2