Skip to content

Commit e428763

Browse files
fix(ci): handle unset DEBUG var with set -u in definitions.sh
The `set -euo pipefail` in install-operator.sh propagates to sourced .definitions.sh where `${DEBUG}` is used without a default value. Use `${DEBUG:-}` for safe expansion under nounset.
1 parent 7964d0a commit e428763

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/scripts/.definitions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
[[ -z "${DEBUG}" ]] || set -x
4+
[[ -z "${DEBUG:-}" ]] || set -x
55

66
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
77
TEST_DIR="$( cd "${SCRIPT_DIR}/.." && pwd )"

0 commit comments

Comments
 (0)