mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user