diff options
Diffstat (limited to 'src/oh-strip.sh')
-rw-r--r-- | src/oh-strip.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/oh-strip.sh b/src/oh-strip.sh index b104473..45dd1b8 100644 --- a/src/oh-strip.sh +++ b/src/oh-strip.sh @@ -48,7 +48,8 @@ main() find "${dir}" -type f -a ! -path '*/debug/*' -a -name '*.so*' | \ while IFS="${CR}" read file; do - if file "${file}" | grep 'ELF.*shared' >/dev/null 2>&1; then + if file "${file}" | grep 'ELF.*shared' \ + >/dev/null 2>&1; then file="${file#${dir}}" file="/${file##/}" strip_so "${file}" @@ -65,8 +66,8 @@ main() fi done - find "${dir}" -type f -a ! -path '*/debug/*' \ - -a -name 'lib*.a' -a ! -name '*_g.a' | while IFS="{CR}" read file; do + find "${dir}" -type f -a ! -path '*/debug/*' -a -name 'lib*.a' \ + -a ! -name '*_g.a' | while IFS="{CR}" read file; do file="${file#${dir}}" file="/${file##/}" strip_a "${file}" @@ -130,8 +131,8 @@ keep_debug() return fi - build_id_parts="$(${READELF} -n "${dir}/${file}" | \ - sed -n 's/^.*Build ID: \([0-9a-f][0-9a-f]\)\([0-9a-f]*\)$/\1 \2/p')" + build_id_parts="$(${READELF} -n "${dir}/${file}" | sed -n \ + 's/^.*Build ID: \([0-9a-f][0-9a-f]\)\([0-9a-f]*\)$/\1 \2/p')" if [ -z "${build_id_parts}" ]; then return fi |