diff --git a/demo/csi/hostpath/run.sh b/demo/csi/hostpath/run.sh index eebe493f1..0169f1980 100755 --- a/demo/csi/hostpath/run.sh +++ b/demo/csi/hostpath/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Run the hostpath plugin and create some volumes, and then claim them. set -e diff --git a/e2e/bin/run b/e2e/bin/run index e24096350..8ddc2b00f 100755 --- a/e2e/bin/run +++ b/e2e/bin/run @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/e2e/bin/update b/e2e/bin/update index 39374a0e3..7aa47db71 100755 --- a/e2e/bin/update +++ b/e2e/bin/update @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ $# -ne 2 ]; then echo "./upload.sh " diff --git a/e2e/networking/inputs/validate.sh b/e2e/networking/inputs/validate.sh index 6844bf002..45bbf1cfb 100755 --- a/e2e/networking/inputs/validate.sh +++ b/e2e/networking/inputs/validate.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash nomad operator api "/v1/allocation/${NOMAD_ALLOC_ID}" | jq '.NetworkStatus.Address | length' diff --git a/e2e/terraform/packer/ubuntu-bionic-amd64/dnsconfig.sh b/e2e/terraform/packer/ubuntu-bionic-amd64/dnsconfig.sh index 7aacbe27d..d4f476bfd 100644 --- a/e2e/terraform/packer/ubuntu-bionic-amd64/dnsconfig.sh +++ b/e2e/terraform/packer/ubuntu-bionic-amd64/dnsconfig.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # These tasks can't be executed during AMI builds because they rely on diff --git a/e2e/terraform/packer/ubuntu-bionic-amd64/setup.sh b/e2e/terraform/packer/ubuntu-bionic-amd64/setup.sh index 1fe8f20c6..aeb4166d1 100755 --- a/e2e/terraform/packer/ubuntu-bionic-amd64/setup.sh +++ b/e2e/terraform/packer/ubuntu-bionic-amd64/setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # setup script for Ubuntu Linux 18.04. Assumes that Packer has placed # build-time config files at /tmp/linux diff --git a/e2e/terraform/scripts/bootstrap-nomad.sh b/e2e/terraform/scripts/bootstrap-nomad.sh index f45e59ff6..f3d0ba361 100755 --- a/e2e/terraform/scripts/bootstrap-nomad.sh +++ b/e2e/terraform/scripts/bootstrap-nomad.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" diff --git a/nomad/structs/generate.sh b/nomad/structs/generate.sh index 93107092b..c30a6fe32 100755 --- a/nomad/structs/generate.sh +++ b/nomad/structs/generate.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e FILES="$(ls ./*.go | grep -v -e _test.go -e .generated.go | tr '\n' ' ')" diff --git a/scripts/example_weave.bash b/scripts/example_weave.bash index de916a6bb..376185f8a 100755 --- a/scripts/example_weave.bash +++ b/scripts/example_weave.bash @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ "$USER" != "vagrant" ]]; then echo "WARNING: This script is intended to be run from Nomad's Vagrant" read -rsp $'Press any key to continue anyway...\n' -n1 diff --git a/terraform/aws/env/us-east/user-data-client.sh b/terraform/aws/env/us-east/user-data-client.sh index 383b9e87d..262d4c96b 100644 --- a/terraform/aws/env/us-east/user-data-client.sh +++ b/terraform/aws/env/us-east/user-data-client.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/terraform/aws/env/us-east/user-data-server.sh b/terraform/aws/env/us-east/user-data-server.sh index c7465295d..78e4681c7 100644 --- a/terraform/aws/env/us-east/user-data-server.sh +++ b/terraform/aws/env/us-east/user-data-server.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/terraform/azure/env/EastUS/user-data-client.sh b/terraform/azure/env/EastUS/user-data-client.sh index 45d0074d1..f2add7873 100644 --- a/terraform/azure/env/EastUS/user-data-client.sh +++ b/terraform/azure/env/EastUS/user-data-client.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/terraform/azure/env/EastUS/user-data-server.sh b/terraform/azure/env/EastUS/user-data-server.sh index 045330022..82bd507d7 100644 --- a/terraform/azure/env/EastUS/user-data-server.sh +++ b/terraform/azure/env/EastUS/user-data-server.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/terraform/shared/scripts/client.sh b/terraform/shared/scripts/client.sh index 7927aeb42..3e6841bd9 100644 --- a/terraform/shared/scripts/client.sh +++ b/terraform/shared/scripts/client.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/terraform/shared/scripts/server.sh b/terraform/shared/scripts/server.sh index 01e00df64..72f45e446 100644 --- a/terraform/shared/scripts/server.sh +++ b/terraform/shared/scripts/server.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/terraform/shared/scripts/setup.sh b/terraform/shared/scripts/setup.sh index c5c2babe9..c6b1e1218 100644 --- a/terraform/shared/scripts/setup.sh +++ b/terraform/shared/scripts/setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/website/scripts/should-build.sh b/website/scripts/should-build.sh index 1d0cb6fd9..16211163c 100644 --- a/website/scripts/should-build.sh +++ b/website/scripts/should-build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is run during the website build step to determine if we should skip the build or not. # More information: https://vercel.com/docs/platform/projects#ignored-build-step