diff --git a/.github/actions/constellation_create/az-logs.sh b/.github/actions/constellation_create/az-logs.sh index e71df342b..10e698dc6 100755 --- a/.github/actions/constellation_create/az-logs.sh +++ b/.github/actions/constellation_create/az-logs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash printf "Fetching logs of instances in resource group %s\n" $1 diff --git a/.github/actions/constellation_create/gcp-logs.sh b/.github/actions/constellation_create/gcp-logs.sh index 523dae7ef..fc0a727f6 100755 --- a/.github/actions/constellation_create/gcp-logs.sh +++ b/.github/actions/constellation_create/gcp-logs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Usage: ./gcp-logs.sh diff --git a/.github/docs/development.md b/.github/docs/development.md index 2d18bc116..b814c0541 100644 --- a/.github/docs/development.md +++ b/.github/docs/development.md @@ -106,7 +106,7 @@ In order to download an image you will have to export it to a bucket you have ac To download an image from Azure you will have to create a disk from the image and generate a download link for that disk: ```bash -#!/bin/bash +#!/usr/bin/env bash VERSION=0.0.1 TARGET_DISK=export-${VERSION} diff --git a/cli/internal/helm/generateCilium.sh b/cli/internal/helm/generateCilium.sh index ee1077c3f..feec3040b 100755 --- a/cli/internal/helm/generateCilium.sh +++ b/cli/internal/helm/generateCilium.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash CALLDIR=$(pwd) CILIUMTMPDIR=$(mktemp -d) diff --git a/cli/internal/libvirt/start.sh b/cli/internal/libvirt/start.sh index c5455a967..84cc82ed1 100755 --- a/cli/internal/libvirt/start.sh +++ b/cli/internal/libvirt/start.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Assign qemu the GID of the host system's 'kvm' group to avoid permission issues for environments defaulting to 660 for /dev/kvm (e.g. Debian-based distros) KVM_HOST_GID="$(stat -c '%g' /dev/kvm)" diff --git a/hack/azure-jump-host/jump-host-create b/hack/azure-jump-host/jump-host-create index 5e6246720..8f33bb05b 100755 --- a/hack/azure-jump-host/jump-host-create +++ b/hack/azure-jump-host/jump-host-create @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e set -o pipefail diff --git a/hack/check-licenses.sh b/hack/check-licenses.sh index 61fcd83c1..6ae79e75e 100755 --- a/hack/check-licenses.sh +++ b/hack/check-licenses.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Compare licenses of Go dependencies against a whitelist. diff --git a/hack/fetch-broken-e2e/fetch.sh b/hack/fetch-broken-e2e/fetch.sh index afc071789..7b3835e17 100755 --- a/hack/fetch-broken-e2e/fetch.sh +++ b/hack/fetch-broken-e2e/fetch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/hack/fetch-broken-e2e/find.sh b/hack/fetch-broken-e2e/find.sh index 01c40cd52..6f58f5b11 100755 --- a/hack/fetch-broken-e2e/find.sh +++ b/hack/fetch-broken-e2e/find.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/hack/importAzure.sh b/hack/importAzure.sh index ebe66b8fc..e3028b4d8 100755 --- a/hack/importAzure.sh +++ b/hack/importAzure.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # importAzure imports a downloaded Azure VM image into Azure cloud. # Parameters are provided via environment variables.