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:
2
Makefile
2
Makefile
@@ -27,7 +27,7 @@
|
|||||||
# additional permission if he deems it necessary to achieve the goals of this
|
# additional permission if he deems it necessary to achieve the goals of this
|
||||||
# additional permission.
|
# additional permission.
|
||||||
|
|
||||||
SHELL = /usr/bin/env bash
|
SHELL = bash
|
||||||
.PHONY: all art cleanart version program lang path deps run race generate build build-debug crossbuild clean test gofmt yamlfmt format docs
|
.PHONY: all art cleanart version program lang path deps run race generate build build-debug crossbuild clean test gofmt yamlfmt format docs
|
||||||
.PHONY: rpmbuild mkdirs rpm srpm spec tar upload upload-sources upload-srpms upload-rpms upload-releases copr tag
|
.PHONY: rpmbuild mkdirs rpm srpm spec tar upload upload-sources upload-srpms upload-rpms upload-releases copr tag
|
||||||
.PHONY: mkosi mkosi_fedora-latest mkosi_fedora-older mkosi_stream-latest mkosi_debian-stable mkosi_ubuntu-latest mkosi_archlinux
|
.PHONY: mkosi mkosi_fedora-latest mkosi_fedora-older mkosi_stream-latest mkosi_debian-stable mkosi_ubuntu-latest mkosi_archlinux
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
script_directory="$( cd "$( dirname "$0" )" && pwd )"
|
script_directory="$( cd "$( dirname "$0" )" && pwd )"
|
||||||
project_directory=$script_directory/../..
|
project_directory=$script_directory/../..
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Stop on any error
|
# Stop on any error
|
||||||
set -e
|
set -e
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# runs command provided as argument inside a development (Linux) Docker container
|
# runs command provided as argument inside a development (Linux) Docker container
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Stop on any error
|
# Stop on any error
|
||||||
set -e
|
set -e
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
# additional permission if he deems it necessary to achieve the goals of this
|
# additional permission if he deems it necessary to achieve the goals of this
|
||||||
# additional permission.
|
# additional permission.
|
||||||
|
|
||||||
SHELL = /usr/bin/env bash
|
SHELL = bash
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
.SILENT: clean
|
.SILENT: clean
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
# additional permission if he deems it necessary to achieve the goals of this
|
# additional permission if he deems it necessary to achieve the goals of this
|
||||||
# additional permission.
|
# additional permission.
|
||||||
|
|
||||||
SHELL = /usr/bin/env bash
|
SHELL = bash
|
||||||
.PHONY: all build clean fuzz
|
.PHONY: all build clean fuzz
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|||||||
@@ -794,7 +794,7 @@ class base:host($name, $config) {
|
|||||||
# passed into the provisioner. It's just now in a deploy subdir.
|
# passed into the provisioner. It's just now in a deploy subdir.
|
||||||
# If it's a dir, then this becomes the empty strings.
|
# If it's a dir, then this becomes the empty strings.
|
||||||
# XXX: The deploy could instead happen over the network to etcd.
|
# XXX: The deploy could instead happen over the network to etcd.
|
||||||
"echo '#!/bin/bash' > ${firstboot_scripts_dir}mgmt-deploy.sh && echo '${handoff_binary_path} deploy lang --seeds=http://127.0.0.1:2379 --no-git --module-path=${deploy_dir_modules} ${deploy_dir}${handoff_code_chunk}' >> ${firstboot_scripts_dir}mgmt-deploy.sh && chmod u+x ${firstboot_scripts_dir}mgmt-deploy.sh"
|
"echo '#!/usr/bin/env bash' > ${firstboot_scripts_dir}mgmt-deploy.sh && echo '${handoff_binary_path} deploy lang --seeds=http://127.0.0.1:2379 --no-git --module-path=${deploy_dir_modules} ${deploy_dir}${handoff_code_chunk}' >> ${firstboot_scripts_dir}mgmt-deploy.sh && chmod u+x ${firstboot_scripts_dir}mgmt-deploy.sh"
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: Do we want to signal an http:flag if we're a "default" host?
|
# TODO: Do we want to signal an http:flag if we're a "default" host?
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
# additional permission if he deems it necessary to achieve the goals of this
|
# additional permission if he deems it necessary to achieve the goals of this
|
||||||
# additional permission.
|
# additional permission.
|
||||||
|
|
||||||
SHELL = /usr/bin/env bash
|
SHELL = bash
|
||||||
.PHONY: all fuzz
|
.PHONY: all fuzz
|
||||||
|
|
||||||
all: fuzz
|
all: fuzz
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
_cli_bash_autocomplete_mgmt() {
|
_cli_bash_autocomplete_mgmt() {
|
||||||
local cur prev opts base
|
local cur prev opts base
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# shitty cpu count control, useful for live demos
|
# shitty cpu count control, useful for live demos
|
||||||
|
|
||||||
minimum=1 # don't decrease below this number of cpus
|
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
|
# 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
|
# first argument is the distro type, and the second argument is the version. All
|
||||||
# subsequent arguments are the dependencies.
|
# subsequent arguments are the dependencies.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ "$1" = "" ] || [ "$1" = "--help" ]; then
|
if [ "$1" = "" ] || [ "$1" = "--help" ]; then
|
||||||
echo "usage: append standard header to file"
|
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
|
# simple test loop runner, eg: ./looper.sh make test-shell-exec-fail
|
||||||
|
|
||||||
while true
|
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.
|
# Make a new "baddev" branch, start on whatever branch you want to base it on.
|
||||||
git checkout -B baddev # scary -B reset the branch
|
git checkout -B baddev # scary -B reset the branch
|
||||||
make
|
make
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# This script generates a deb changelog from the project's git history.
|
# This script generates a deb changelog from the project's git history.
|
||||||
|
|
||||||
# version we're releasing
|
# version we're releasing
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# setup a simple golang environment
|
# setup a simple golang environment
|
||||||
XPWD=`pwd`
|
XPWD=`pwd`
|
||||||
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" # dir!
|
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
|
# setup a few environment path values
|
||||||
|
|
||||||
if ! env | grep -q '^GOPATH='; then
|
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.
|
# This script generates an rpm changelog from the project's git history.
|
||||||
|
|
||||||
# version we're releasing
|
# 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
|
# 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
|
# 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 if he deems it necessary to achieve the goals of this
|
||||||
# additional permission.
|
# additional permission.
|
||||||
|
|
||||||
SHELL = /usr/bin/env bash
|
SHELL = bash
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
default: all
|
default: all
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
echo running "$0"
|
echo running "$0"
|
||||||
set -o errexit
|
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
|
# 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.
|
# 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 -eEu
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# modified slightly, originally from:
|
# modified slightly, originally from:
|
||||||
# https://raw.githubusercontent.com/dlenski/travis-encrypt-sh/master/travis-encrypt
|
# 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
|
# port tests to txtar
|
||||||
for f in */main.mcl; do
|
for f in */main.mcl; do
|
||||||
echo $f == $(dirname $f)
|
echo $f == $(dirname $f)
|
||||||
|
|||||||
2
run.sh
2
run.sh
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# simple way to kick off runs of the project, since 'go run' sucks!
|
# simple way to kick off runs of the project, since 'go run' sucks!
|
||||||
make build || exit 1
|
make build || exit 1
|
||||||
|
|||||||
2
test.sh
2
test.sh
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
# runs all (or selected) test suite(s) in test/ and aggregates results
|
# runs all (or selected) test suite(s) in test/ and aggregates results
|
||||||
# Usage:
|
# Usage:
|
||||||
# ./test.sh
|
# ./test.sh
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
# additional permission if he deems it necessary to achieve the goals of this
|
# additional permission if he deems it necessary to achieve the goals of this
|
||||||
# additional permission.
|
# additional permission.
|
||||||
|
|
||||||
SHELL = /usr/bin/env bash
|
SHELL = bash
|
||||||
.PHONY: all build clean
|
.PHONY: all build clean
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
exit 0 # XXX: disable for now
|
exit 0 # XXX: disable for now
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
exit 0 # XXX: disable for now
|
exit 0 # XXX: disable for now
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
# FIXME: test for #124 --- Disabled for now
|
# FIXME: test for #124 --- Disabled for now
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
exit 0 # XXX: disable for now
|
exit 0 # XXX: disable for now
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
# vim: noet:ts=8:sts=8:sw=8
|
# vim: noet:ts=8:sts=8:sw=8
|
||||||
|
|
||||||
exit 0 # XXX: disable for now
|
exit 0 # XXX: disable for now
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
# vim: noet:ts=8:sts=8:sw=8
|
# vim: noet:ts=8:sts=8:sw=8
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -xe
|
#!/usr/bin/env -S bash -xe
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
# NOTES:
|
# NOTES:
|
||||||
# * this is a simple shell based `mgmt` test case
|
# * this is a simple shell based `mgmt` test case
|
||||||
# * it is recommended that you run mgmt wrapped in the timeout command
|
# * it is recommended that you run mgmt wrapped in the timeout command
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
. "$(dirname "$0")/../util.sh"
|
. "$(dirname "$0")/../util.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check for any bash files that aren't properly formatted
|
# check for any bash files that aren't properly formatted
|
||||||
# TODO: this is hardly exhaustive
|
# TODO: this is hardly exhaustive
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/usr/bin/env -S bash -e
|
||||||
# tests if commit message conforms to convention
|
# tests if commit message conforms to convention
|
||||||
|
|
||||||
# library of utility functions
|
# library of utility functions
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e -o pipefail
|
set -e -o pipefail
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check that our documentation still generates, even if we don't use it here
|
# check that our documentation still generates, even if we don't use it here
|
||||||
|
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check that our examples still build, even if we don't run them here
|
# check that our examples still build, even if we don't run them here
|
||||||
|
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# original version of this script from kubernetes project, under ALv2 license
|
# original version of this script from kubernetes project, under ALv2 license
|
||||||
|
|
||||||
echo running "$0"
|
echo running "$0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check a bunch of linters with the golangci_lint
|
# check a bunch of linters with the golangci_lint
|
||||||
# TODO: run this from the test-golint.sh file instead to check for deltas
|
# TODO: run this from the test-golint.sh file instead to check for deltas
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check that go lint passes or doesn't get worse by some threshold
|
# check that go lint passes or doesn't get worse by some threshold
|
||||||
|
|
||||||
echo running "$0"
|
echo running "$0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check a bunch of linters with the gometalinter
|
# check a bunch of linters with the gometalinter
|
||||||
# TODO: run this from the test-golint.sh file instead to check for deltas
|
# TODO: run this from the test-golint.sh file instead to check for deltas
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo running "$0" "$@"
|
echo running "$0" "$@"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check that go vet passes
|
# check that go vet passes
|
||||||
|
|
||||||
echo running "$0"
|
echo running "$0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check that headers are properly formatted
|
# check that headers are properly formatted
|
||||||
|
|
||||||
echo running "$0"
|
echo running "$0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# this file exists to that bash completion for test names works
|
# this file exists to that bash completion for test names works
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check for any markdown files that aren't in an ideal format
|
# check for any markdown files that aren't in an ideal format
|
||||||
|
|
||||||
echo running "$0 $*"
|
echo running "$0 $*"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check for any mcl files that aren't properly formatted
|
# check for any mcl files that aren't properly formatted
|
||||||
# TODO: this is hardly exhaustive
|
# TODO: this is hardly exhaustive
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# simple tests that don't deserve their own testfile
|
# simple tests that don't deserve their own testfile
|
||||||
|
|
||||||
# library of utility functions
|
# library of utility functions
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check that our modules still build, even if we don't run them here
|
# check that our modules still build, even if we don't run them here
|
||||||
|
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -i
|
#!/usr/bin/env -S bash -i
|
||||||
# simple test harness for testing mgmt via omv
|
# simple test harness for testing mgmt via omv
|
||||||
echo running "$0"
|
echo running "$0"
|
||||||
CWD=`pwd`
|
CWD=`pwd`
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# simple test for reproducibility, probably needs major improvements
|
# simple test for reproducibility, probably needs major improvements
|
||||||
echo running "$0"
|
echo running "$0"
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# simple test harness for testing mgmt
|
# simple test harness for testing mgmt
|
||||||
# NOTE: this will rm -rf /tmp/mgmt/
|
# NOTE: this will rm -rf /tmp/mgmt/
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# vet a few random things
|
# vet a few random things
|
||||||
|
|
||||||
echo running "$0"
|
echo running "$0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check for any yaml files that aren't properly formatted
|
# check for any yaml files that aren't properly formatted
|
||||||
|
|
||||||
exit 0 # i give up, we're skipping this entirely, help wanted to fix this
|
exit 0 # i give up, we're skipping this entirely, help wanted to fix this
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# common settings and functions for test scripts
|
# common settings and functions for test scripts
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user