makepkg: Fix STRIP_DIRS test.

Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Xavier Chantry 2008-07-28 22:37:08 +02:00 committed by Dan McGee
parent 0e0a846135
commit 6ede1a5af0
1 changed files with 3 additions and 2 deletions

View File

@ -727,9 +727,10 @@ tidy_install() {
if [ "$(check_option strip)" = "y" ]; then
msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")"
local binary
if [ -z "${STRIP_DIRS[@]}" ]; then
if [ -z "${STRIP_DIRS[*]}" ]; then
# fall back to default value
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}}
opt/*/{bin,lib,sbin})
fi
find ${STRIP_DIRS[@]} -type f 2>/dev/null | while read binary ; do
case "$(file -biz "$binary")" in