misc: Use /usr/bin/env for a more generic shebang

Use path based SHELL in Makefiles. It was suggested that this is a
better solution for make for cases when there is no /usr/bin/env.

See: https://github.com/purpleidea/mgmt/pull/694#discussion_r1015596204
This commit is contained in:
Karpfen
2025-03-22 14:53:21 -04:00
committed by James Shubin
parent f2d9219218
commit 7e8ced534f
92 changed files with 92 additions and 92 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
_cli_bash_autocomplete_mgmt() {
local cur prev opts base

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# shitty cpu count control, useful for live demos
minimum=1 # don't decrease below this number of cpus

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script packages rpm, deb, and pacman packages of mgmt with fpm. The
# first argument is the distro type, and the second argument is the version. All
# subsequent arguments are the dependencies.

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ "$1" = "" ] || [ "$1" = "--help" ]; then
echo "usage: append standard header to file"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# simple test loop runner, eg: ./looper.sh make test-shell-exec-fail
while true

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Make a new "baddev" branch, start on whatever branch you want to base it on.
git checkout -B baddev # scary -B reset the branch
make

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script generates a deb changelog from the project's git history.
# version we're releasing

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# setup a simple golang environment
XPWD=`pwd`
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" # dir!

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# setup a few environment path values
if ! env | grep -q '^GOPATH='; then

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script generates an rpm changelog from the project's git history.
# version we're releasing

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This is a helper script to run mgmt and capture and filter stack traces. Any
# time mgmt crashes with a trace, it will first be filtered, and then displayed

View File

@@ -27,7 +27,7 @@
# additional permission if he deems it necessary to achieve the goals of this
# additional permission.
SHELL = /usr/bin/env bash
SHELL = bash
.PHONY: all clean
default: all

View File

@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e
echo running "$0"
set -o errexit

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# If mkosi.builddir/ exists mkosi will set $BUILDDIR to it, let's then use it as
# out-of-tree build dir. Otherwise, let's make up our own builddir.

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eEu
set -o pipefail

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# modified slightly, originally from:
# https://raw.githubusercontent.com/dlenski/travis-encrypt-sh/master/travis-encrypt

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# port tests to txtar
for f in */main.mcl; do
echo $f == $(dirname $f)