]> piware.de Git - bin.git/blobdiff - build-cockpit-toolbox
build-cockpit-toolbox: Add hashbang to flatpak-spawn wrappers
[bin.git] / build-cockpit-toolbox
index c13b76364e9731dd7fbd810e4c6ce8ffe7228de9..222d4b501a1630420fce19aa0e5ade5c6dc65977 100755 (executable)
@@ -18,6 +18,7 @@ sudo sed -i s/nodocs// /etc/dnf/dnf.conf
 
 sudo dnf install -y ansible bash-completion man-db man-pages moreutils fd-find ripgrep gh git-delta neovim \
     python3-boto python3-boto3 python3-openstacksdk python3-pytest-asyncio libnotify \
+    python3-mypy \
     simple-scan /usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert pdfmerge \
     cargo rustfmt clippy \
     calibre qt5-qtwayland \
@@ -26,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
 '