scripts: fix interpreter for bash (#12549)

Many of our scripts have a non-portable interpreter line for bash and
use bash-specific variables like `BASH_SOURCE`. Update the interpreter
line to be portable between various Linuxes and macOS without
complaint from posix shell users.
This commit is contained in:
Tim Gross
2022-04-12 10:08:21 -04:00
committed by GitHub
parent 86ca8f7e73
commit 247e20e10b
17 changed files with 17 additions and 17 deletions

View File

@@ -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