Skip to content

Commit 8ba9cc4

Browse files
committed
Fix escaping and log messages order
1 parent 5d03da9 commit 8ba9cc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

linuxdeploy-plugin-gstreamer.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fi
6969

7070
mkdir -p "$APPDIR"
7171

72-
export GSTREAMER_VERSION=${GSTREAMER_VERSION:-1.0}
72+
export GSTREAMER_VERSION="${GSTREAMER_VERSION:-1.0}"
7373

7474
plugins_target_dir="$APPDIR"/usr/lib/gstreamer-"$GSTREAMER_VERSION"
7575
helpers_target_dir="$APPDIR"/usr/lib/gstreamer"$GSTREAMER_VERSION"/gstreamer-"$GSTREAMER_VERSION"
@@ -101,13 +101,13 @@ for i in "$plugins_dir"/*; do
101101
cp "$i" "$plugins_target_dir"
102102
done
103103

104-
$LINUXDEPLOY --appdir $APPDIR
104+
"$LINUXDEPLOY" --appdir "$APPDIR"
105105

106106
for i in "$plugins_target_dir"/*; do
107107
[ -d "$i" ] && continue
108108

109-
patchelf --set-rpath '$ORIGIN/..:$ORIGIN' $i
110109
echo "Manually setting rpath for $i"
110+
patchelf --set-rpath '$ORIGIN/..:$ORIGIN' "$i"
111111
done
112112

113113
mkdir -p "$helpers_target_dir"
@@ -123,8 +123,8 @@ done
123123
for i in "$helpers_target_dir"/*; do
124124
[ -d "$i" ] && continue
125125

126-
patchelf --set-rpath '$ORIGIN/../..' $i
127126
echo "Manually setting rpath for $i"
127+
patchelf --set-rpath '$ORIGIN/../..' "$i"
128128
done
129129

130130
echo "Installing AppRun hook"

0 commit comments

Comments
 (0)