]> piware.de Git - bin.git/commitdiff
build-cockpit-toolbox: Add hashbang to flatpak-spawn wrappers
authorMartin Pitt <martin@piware.de>
Wed, 13 Mar 2024 09:19:16 +0000 (10:19 +0100)
committerMartin Pitt <martin@piware.de>
Wed, 13 Mar 2024 09:19:16 +0000 (10:19 +0100)
So that these can be called from Python.

build-cockpit-toolbox

index deff276a2d2e7fb9766569113fc7c26b8ffc4c84..222d4b501a1630420fce19aa0e5ade5c6dc65977 100755 (executable)
@@ -27,7 +27,7 @@ sudo dnf install -y ansible bash-completion man-db man-pages moreutils fd-find r
 
 # commands to forward to the host
 for cmd in podman toolbox nmcli eog evince; do
-    printf "flatpak-spawn --host $cmd \42\$@\42\n" | sudo tee /usr/local/bin/$cmd >/dev/null
+    printf "#!/bin/sh\nexec flatpak-spawn --host $cmd \42\$@\42\n" | sudo tee /usr/local/bin/$cmd >/dev/null
     sudo chmod a+x /usr/local/bin/$cmd
 done
 '