From f0dbdd6aa6ead8bd28afe703e65d8e177b2dc428 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 13 Mar 2024 10:19:16 +0100 Subject: [PATCH] build-cockpit-toolbox: Add hashbang to flatpak-spawn wrappers So that these can be called from Python. --- build-cockpit-toolbox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ' -- 2.39.5