06-strip-and-debug-pkgs.sh: ignore binaries for unknown machines

Because most likely these files are not executables, but some kind of
bytecode. And strip doesn't know how to strip them anyway.
This commit is contained in:
a 2020-04-24 03:16:18 +03:00 committed by Toyam Cox
parent 0222078d36
commit 3c135fddb7

View file

@ -70,6 +70,10 @@ hook() {
continue
fi
if [[ $(file -b "$f") =~ "no machine" ]]; then
continue
fi
fname=${f##*/}
for x in ${nostrip_files}; do
if [ "$x" = "$fname" ]; then