Skip to content

Commit 6553946

Browse files
committed
output the bash 5 hint via stderr and format a bit different
this way shfmt doesn't put it on multiple lines moreover, adjust the ToC, remove non-existing and fix wrong anchors
1 parent 2a2f4d1 commit 6553946

File tree

89 files changed

+165
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+165
-166
lines changed

README.md

Lines changed: 38 additions & 39 deletions
Large diffs are not rendered by default.

scripts/before-pr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Version: v4.8.0-SNAPSHOT
1010
###################################
1111
set -euo pipefail
12-
shopt -s inherit_errexit || { echo "please update to bash 5, see errors above"; exit 1; }
12+
shopt -s inherit_errexit || { echo >&2 "please update to bash 5, see errors above" && exit 1; }
1313
unset CDPATH
1414

1515
if ! [[ -v scriptsDir ]]; then

scripts/check-in-bug-template.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Version: v4.8.0-SNAPSHOT
1010
###################################
1111
set -euo pipefail
12-
shopt -s inherit_errexit || { echo "please update to bash 5, see errors above"; exit 1; }
12+
shopt -s inherit_errexit || { echo >&2 "please update to bash 5, see errors above" && exit 1; }
1313
unset CDPATH
1414

1515
if ! [[ -v scriptsDir ]]; then

scripts/cleanup-on-push-to-main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Version: v4.8.0-SNAPSHOT
1010
###################################
1111
set -euo pipefail
12-
shopt -s inherit_errexit || { echo "please update to bash 5, see errors above"; exit 1; }
12+
shopt -s inherit_errexit || { echo >&2 "please update to bash 5, see errors above" && exit 1; }
1313
unset CDPATH
1414

1515
if ! [[ -v scriptsDir ]]; then

scripts/prepare-next-dev-cycle.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Version: v4.8.0-SNAPSHOT
1010
###################################
1111
set -euo pipefail
12-
shopt -s inherit_errexit || { echo "please update to bash 5, see errors above"; exit 1; }
12+
shopt -s inherit_errexit || { echo >&2 "please update to bash 5, see errors above" && exit 1; }
1313
unset CDPATH
1414
export TEGONAL_SCRIPTS_VERSION='v4.8.0-SNAPSHOT'
1515

scripts/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Version: v4.8.0-SNAPSHOT
1010
###################################
1111
set -euo pipefail
12-
shopt -s inherit_errexit || { echo "please update to bash 5, see errors above"; exit 1; }
12+
shopt -s inherit_errexit || { echo >&2 "please update to bash 5, see errors above" && exit 1; }
1313
unset CDPATH
1414
export TEGONAL_SCRIPTS_VERSION='v4.8.0-SNAPSHOT'
1515

scripts/run-shellcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Version: v4.8.0-SNAPSHOT
1010
###################################
1111
set -euo pipefail
12-
shopt -s inherit_errexit || { echo "please update to bash 5, see errors above"; exit 1; }
12+
shopt -s inherit_errexit || { echo >&2 "please update to bash 5, see errors above" && exit 1; }
1313
unset CDPATH
1414

1515
if ! [[ -v scriptsDir ]]; then

src/ci/install-shellcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#
2828
###################################
2929
set -euo pipefail
30-
shopt -s inherit_errexit || { echo "please update to bash 5, see errors above"; exit 1; }
30+
shopt -s inherit_errexit || { echo >&2 "please update to bash 5, see errors above" && exit 1; }
3131
unset CDPATH
3232

3333
function logError() {

src/ci/install-shellspec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#
2828
###################################
2929
set -euo pipefail
30-
shopt -s inherit_errexit || { echo "please update to bash 5, see errors above"; exit 1; }
30+
shopt -s inherit_errexit || { echo >&2 "please update to bash 5, see errors above" && exit 1; }
3131
unset CDPATH
3232

3333
function logError() {

src/ci/jelastic/deploy.doc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
3-
shopt -s inherit_errexit || { echo "please update to bash 5, see errors above"; exit 1; }
3+
shopt -s inherit_errexit || { echo >&2 "please update to bash 5, see errors above" && exit 1; }
44
# Assumes tegonal's scripts were fetched with gt - adjust location accordingly
55
dir_of_tegonal_scripts="$(cd -- "$(dirname -- "${BASH_SOURCE[0]:-$0}")" >/dev/null && pwd 2>/dev/null)/../lib/tegonal-scripts/src"
66
source "$dir_of_tegonal_scripts/setup.sh" "$dir_of_tegonal_scripts"

0 commit comments

Comments
 (0)