From f24c4072fdb09f117f8e2b58baf017883725b7a0 Mon Sep 17 00:00:00 2001 From: Arcitec <38923130+Arcitec@users.noreply.github.com> Date: Tue, 9 May 2023 15:34:59 +0200 Subject: [PATCH] fix: use proper shebang line This is the most portable shebang line and should always be used. --- build.sh | 2 +- etc/justfile | 4 ++-- scripts/example.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index d32b88eee2..65961a85e6 100644 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Tell build process to exit if there are any errors. set -ouex pipefail diff --git a/etc/justfile b/etc/justfile index af46e5fbd6..5f760f053f 100644 --- a/etc/justfile +++ b/etc/justfile @@ -24,7 +24,7 @@ distrobox-ubuntu: distrobox create --image quay.io/toolbx-images/ubuntu-toolbox:22.04 -n ubuntu -Y setup-flatpaks: - #!/bin/bash + #!/usr/bin/env bash echo 'Installing flatpaks from the ublue recipe ...' flatpaks=$(yq '.flatpaks[]' < /usr/etc/ublue-recipe.yml) for pkg in $flatpaks; do \ @@ -62,7 +62,7 @@ nix-me-up: /usr/bin/ublue-nix-install update: - #!/bin/bash + #!/usr/bin/env bash echo "Staging system update..." rpm-ostree update diff --git a/scripts/example.sh b/scripts/example.sh index 1487103f81..d8a0157e8d 100644 --- a/scripts/example.sh +++ b/scripts/example.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Tell this script to exit if there are any errors. # You should have this in every custom script, to ensure that your completed