Skip to content

Commit f6452c0

Browse files
committed
Fix shellcheck warning
SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
1 parent 159139c commit f6452c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gdb/linuxdeploy-plugin-gdb.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ cat > "$old_exe" <<EOF
6868
#! /bin/bash
6969
7070
if [[ -n "\$APPIMAGE_USE_GDB" ]]; then
71-
gdb --cd "\$APPDIR/usr/$(basename "$LINUXDEPLOY_PLUGIN_GDB_SRC")" --args "\$APPDIR/${new_exe#$appdir}" "\$@"
71+
gdb --cd "\$APPDIR/usr/$(basename "$LINUXDEPLOY_PLUGIN_GDB_SRC")" --args "\$APPDIR/${new_exe#"$appdir"}" "\$@"
7272
else
73-
exec "\$APPDIR/${new_exe#$appdir}" "\$@"
73+
exec "\$APPDIR/${new_exe#"$appdir"}" "\$@"
7474
fi
7575
EOF
7676
chmod $verbose 755 "$old_exe"

0 commit comments

Comments
 (0)