From e871587efcc391a409779df762acdc64973c2c51 Mon Sep 17 00:00:00 2001 From: stivius Date: Tue, 5 Jan 2021 21:04:34 +0200 Subject: [PATCH] Fix non-elf file skip --- 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..887a3eb 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"