diff options
-rw-r--r-- | functions | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -598,10 +598,10 @@ add_binary() { ! lddout=$(ldd "$binary" 2>/dev/null) && return 0 # resolve sodeps - regex='(/.+) \(0x[a-fA-F0-9]+\)' - while read line; do + regex='^(|.+ )(/.+) \(0x[a-fA-F0-9]+\)' + while read -r line; do if [[ $line =~ $regex ]]; then - sodep=${BASH_REMATCH[1]} + sodep=${BASH_REMATCH[2]} elif [[ $line = *'not found' ]]; then error "binary dependency \`%s' not found for \`%s'" "${line%% *}" "$1" (( ++_builderrors )) |