Skip to content

Commit d617636

Browse files
committed
fix(gather_gitops.sh): Silent shellcheck false positive
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
1 parent 976cbbe commit d617636

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gather_gitops.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

33
set -eu -o pipefail
4+
s=declare_out_of_trap_script # Workaround for https://github.com/koalaman/shellcheck/issues/3287
45
trap 's=$?; echo >&2 "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
56

67
LOGS_DIR="/must-gather"

0 commit comments

Comments
 (0)