Skip to content

Commit e1d2dfe

Browse files
committed
Fix shebang in generated script
1 parent b6c0e52 commit e1d2dfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linuxdeploy-plugin-gtk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ HOOKSDIR="$APPDIR/apprun-hooks"
177177
HOOKFILE="$HOOKSDIR/linuxdeploy-plugin-gtk.sh"
178178
mkdir -p "$HOOKSDIR"
179179
cat > "$HOOKFILE" <<\EOF
180-
#! /bin/bash
180+
#! /usr/bin/env bash
181181
182182
gsettings get org.gnome.desktop.interface gtk-theme 2> /dev/null | grep -qi "dark" && GTK_THEME_VARIANT="dark" || GTK_THEME_VARIANT="light"
183183
APPIMAGE_GTK_THEME="${APPIMAGE_GTK_THEME:-"Adwaita:$GTK_THEME_VARIANT"}" # Allow user to override theme (discouraged)
184184
185185
# in case we run from an AppImage, we use the $APPDIR environment variable as a template for the temporary directory that should be created
186186
# this allows users to attribute the tempdir to the running AppImage
187-
if [[ "$APPDIR" != "" ]]; then
187+
if [ "$APPDIR" != "" ]; then
188188
tempdir_template="$APPDIR".ld-p-gtk-tmp
189189
else
190190
tempdir_template=/tmp/.ld-p-gtk-tmp-XXXXXX

0 commit comments

Comments
 (0)