Skip to content

Commit 863bf9a

Browse files
committed
- Upgrade approvals.bash to 0.4.2
1 parent f028230 commit 863bf9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/bashly/libraries/test/approvals.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# approvals.bash v0.4.1
1+
# approvals.bash v0.4.2
22
#
33
# Interactive approval testing for Bash.
44
# https://github.com/DannyBen/approvals.bash
@@ -9,7 +9,7 @@ approve() {
99
cmd=$1
1010
last_exit_code=0
1111
actual=$(eval "$cmd" 2>&1) || last_exit_code=$?
12-
if [[ "$allow_diff_regex" ]]; then
12+
if [[ -v allow_diff_regex && "$allow_diff_regex" ]]; then
1313
actual=$(echo "$actual" | sed -E "s/$allow_diff_regex/*/g")
1414
unset allow_diff_regex
1515
fi

0 commit comments

Comments
 (0)