From: Michael Tremer Date: Wed, 7 Jun 2017 09:34:43 +0000 (+0100) Subject: stripper: Abort if stripping fails X-Git-Tag: v2.19-core112~35 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=b98ca5fa2d75d0ce5f03786f91a5ecaed625e914 stripper: Abort if stripping fails Signed-off-by: Michael Tremer --- diff --git a/src/stripper b/src/stripper index 2b4feafe90..3601e74274 100755 --- a/src/stripper +++ b/src/stripper @@ -45,13 +45,13 @@ for dir in ${dirs}; do find ${dir} -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) \ | file -N -f - | sed -n -e 's/^\(.*\):[ ]*.*ELF.*, not stripped/\1/p' | while read file; do - _strip ${file} - done + _strip ${file} || exit $? + done || exit $? # Strip static archives. find ${dir} -name \*.a -a -exec file {} \; \ | grep 'current ar archive' | sed -n -e 's/^\(.*\):[ ]*current ar archive/\1/p' | while read file; do - _strip ${file} - done + _strip ${file} || exit $? + done || exit $? done