diff --git a/.buildkite/deployment.sh b/.buildkite/deployment.sh index e2ce8d46..9f732b5f 100755 --- a/.buildkite/deployment.sh +++ b/.buildkite/deployment.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -u DIVERGED=$(git merge-base --fork-point origin/master > /dev/null; echo $?) diff --git a/.buildkite/hooks/post-checkout b/.buildkite/hooks/post-checkout index 47151246..8c77838d 100755 --- a/.buildkite/hooks/post-checkout +++ b/.buildkite/hooks/post-checkout @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set +u diff --git a/.buildkite/hooks/post-command b/.buildkite/hooks/post-command index 97af6dc6..b93d09d0 100755 --- a/.buildkite/hooks/post-command +++ b/.buildkite/hooks/post-command @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set +u diff --git a/.buildkite/hooks/pre-artifact b/.buildkite/hooks/pre-artifact index a9f62a4d..f2b230d8 100755 --- a/.buildkite/hooks/pre-artifact +++ b/.buildkite/hooks/pre-artifact @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set +u diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command index 2c1a6c51..0c7cf6da 100755 --- a/.buildkite/hooks/pre-command +++ b/.buildkite/hooks/pre-command @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set +u diff --git a/.buildkite/hooks/pre-exit b/.buildkite/hooks/pre-exit index 8224e414..169152b8 100755 --- a/.buildkite/hooks/pre-exit +++ b/.buildkite/hooks/pre-exit @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set +u diff --git a/.buildkite/pipeline.sh b/.buildkite/pipeline.sh index 554e2ef5..c5685435 100755 --- a/.buildkite/pipeline.sh +++ b/.buildkite/pipeline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -u DIVERGED=$(git merge-base --fork-point origin/master > /dev/null; echo $?) diff --git a/.buildkite/steps/aurhelper.sh b/.buildkite/steps/aurhelper.sh index 5feea9c2..f57b9931 100755 --- a/.buildkite/steps/aurhelper.sh +++ b/.buildkite/steps/aurhelper.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash GITTAG=$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g') diff --git a/.buildkite/steps/aurpackages.sh b/.buildkite/steps/aurpackages.sh index cd2dbf34..10496532 100755 --- a/.buildkite/steps/aurpackages.sh +++ b/.buildkite/steps/aurpackages.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu for AUR_PACKAGE in authelia authelia-bin authelia-git; do diff --git a/.buildkite/steps/buildimages.sh b/.buildkite/steps/buildimages.sh index 77034fd3..e3efa59d 100755 --- a/.buildkite/steps/buildimages.sh +++ b/.buildkite/steps/buildimages.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu declare -A BUILDS=(["linux"]="amd64 arm32v7 arm64v8 coverage") diff --git a/.buildkite/steps/deployimages.sh b/.buildkite/steps/deployimages.sh index bf78ede0..8fdd235d 100755 --- a/.buildkite/steps/deployimages.sh +++ b/.buildkite/steps/deployimages.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu for BUILD_ARCH in amd64 arm32v7 arm64v8; do diff --git a/.buildkite/steps/e2etests.sh b/.buildkite/steps/e2etests.sh index 25c26362..1c3d5cc5 100755 --- a/.buildkite/steps/e2etests.sh +++ b/.buildkite/steps/e2etests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu for SUITE_NAME in $(authelia-scripts suites list); do diff --git a/.buildkite/steps/ghartifacts.sh b/.buildkite/steps/ghartifacts.sh index 00985fbe..90a375b7 100755 --- a/.buildkite/steps/ghartifacts.sh +++ b/.buildkite/steps/ghartifacts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu artifacts=() diff --git a/.buildkite/steps/syncdoc.sh b/.buildkite/steps/syncdoc.sh index 6311b614..67d4d17c 100755 --- a/.buildkite/steps/syncdoc.sh +++ b/.buildkite/steps/syncdoc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/bootstrap.sh b/bootstrap.sh index 805b101d..66ccc291 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export PATH=$PATH:./cmd/authelia-scripts/:./.buildkite/steps/:$GOPATH/bin:./web/node_modules/.bin:/tmp diff --git a/cmd/authelia-scripts/authelia-scripts b/cmd/authelia-scripts/authelia-scripts index d9f52264..7c296e78 100755 --- a/cmd/authelia-scripts/authelia-scripts +++ b/cmd/authelia-scripts/authelia-scripts @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash go run cmd/authelia-scripts/*.go $* \ No newline at end of file diff --git a/compose/local/setup.sh b/compose/local/setup.sh index 05064cb6..0907f33d 100755 --- a/compose/local/setup.sh +++ b/compose/local/setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash username(){ read -ep "Enter your username for Authelia: " USERNAME diff --git a/internal/suites/example/compose/kind/entrypoint-dashboard.sh b/internal/suites/example/compose/kind/entrypoint-dashboard.sh index eb27de4e..e94c5e0e 100755 --- a/internal/suites/example/compose/kind/entrypoint-dashboard.sh +++ b/internal/suites/example/compose/kind/entrypoint-dashboard.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Retries a command on failure. # $1 - the max number of attempts diff --git a/internal/suites/example/kube/bootstrap-dashboard.sh b/internal/suites/example/kube/bootstrap-dashboard.sh index 608cff76..bbaddf89 100755 --- a/internal/suites/example/kube/bootstrap-dashboard.sh +++ b/internal/suites/example/kube/bootstrap-dashboard.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash start_dashboard() { kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml