From 12e0e983f9e01f4e450ef2534cfec10e8aab2539 Mon Sep 17 00:00:00 2001 From: zerobikappa Date: Tue, 8 Feb 2022 04:30:57 +0800 Subject: [PATCH] fix non-ELF file checking (#13) --- linuxdeploy-plugin-gstreamer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linuxdeploy-plugin-gstreamer.sh b/linuxdeploy-plugin-gstreamer.sh index 64ef699..0e29d26 100755 --- a/linuxdeploy-plugin-gstreamer.sh +++ b/linuxdeploy-plugin-gstreamer.sh @@ -107,7 +107,7 @@ done for i in "$plugins_target_dir"/*; do [ -d "$i" ] && continue [ ! -f "$i" ] && echo "File does not exist: $i" && continue - "$(file "$i" | grep -v ELF --silent)" && echo "Ignoring non ELF file: $i" && continue + (file "$i" | grep -v ELF --silent) && echo "Ignoring non ELF file: $i" && continue echo "Manually setting rpath for $i" patchelf --set-rpath '$ORIGIN/..:$ORIGIN' "$i" @@ -127,7 +127,7 @@ done for i in "$helpers_target_dir"/*; do [ -d "$i" ] && continue [ ! -f "$i" ] && echo "File does not exist: $i" && continue - "$(file "$i" | grep -v ELF --silent)" && echo "Ignoring non ELF file: $i" && continue + (file "$i" | grep -v ELF --silent) && echo "Ignoring non ELF file: $i" && continue echo "Manually setting rpath for $i" patchelf --set-rpath '$ORIGIN/../..' "$i"