Skip to content

Commit

Permalink
Use bash for exec wrapper script
Browse files Browse the repository at this point in the history
On Debian-like systems, /bin/sh is dash, which does not support the
bash-specific array syntax used in the wrapper script.

Don't assume that sh is bash: explicitly invoke bash.

Fixes #29
  • Loading branch information
wjt authored and owtaylor committed Jan 17, 2025
1 parent 39e3881 commit 651949e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podman-host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [ "$1" == "exec" ] ; then
done
exec podman exec "${envargs[@]}" "$@"
'
exec flatpak-spawn --host sh -c "$script" - "$@"
exec flatpak-spawn --host bash -c "$script" - "$@"
else
exec flatpak-spawn --host podman "$@"
fi

0 comments on commit 651949e

Please sign in to comment.