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:
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
_cli_bash_autocomplete_mgmt() {
|
||||
local cur prev opts base
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$1" = "" ] || [ "$1" = "--help" ]; then
|
||||
echo "usage: append standard header to 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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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!
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# setup a few environment path values
|
||||
|
||||
if ! env | grep -q '^GOPATH='; then
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash -e
|
||||
#!/usr/bin/env -S bash -e
|
||||
|
||||
echo running "$0"
|
||||
set -o errexit
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -eEu
|
||||
set -o pipefail
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# port tests to txtar
|
||||
for f in */main.mcl; do
|
||||
echo $f == $(dirname $f)
|
||||
|
||||
Reference in New Issue
Block a user