From: Martin Pitt Date: Wed, 13 Mar 2024 09:19:16 +0000 (+0100) Subject: build-cockpit-toolbox: Add hashbang to flatpak-spawn wrappers X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=f0dbdd6aa6ead8bd28afe703e65d8e177b2dc428;p=bin.git build-cockpit-toolbox: Add hashbang to flatpak-spawn wrappers So that these can be called from Python. --- diff --git a/build-cockpit-toolbox b/build-cockpit-toolbox index deff276..222d4b5 100755 --- a/build-cockpit-toolbox +++ b/build-cockpit-toolbox @@ -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 '