Skip to content

Commit

Permalink
fix non-ELF file checking (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerobikappa authored Feb 7, 2022
1 parent f7881a4 commit 12e0e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linuxdeploy-plugin-gstreamer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 12e0e98

Please sign in to comment.