Skip to content

Commit cacf064

Browse files
authored
🌱 Use bash-strict-mode icons in update-operator-dev-deployment.sh (#1721)
1 parent 1829579 commit cacf064

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hack/update-operator-dev-deployment.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
# Usually it is better to write a test, than to use this script.
2424

25-
trap 'echo "Warning: A command has failed. Exiting the script. Line was ($0:$LINENO): $(sed -n "${LINENO}p" "$0")"; exit 3' ERR
25+
# Bash Strict Mode: https://github.com/guettli/bash-strict-mode
26+
trap 'echo -e "\n🤷 🚨 🔥 Warning: A command has failed. Exiting the script. Line was ($0:$LINENO): $(sed -n "${LINENO}p" "$0" 2>/dev/null || true) 🔥 🚨 🤷 "; exit 3' ERR
2627
set -Eeuo pipefail
2728

2829
if [[ $(kubectl config current-context) == *oidc@* ]]; then

0 commit comments

Comments
 (0)