summaryrefslogtreecommitdiffstats
path: root/test-branches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test-branches.sh')
-rwxr-xr-xtest-branches.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test-branches.sh b/test-branches.sh
index 40c5a50..4e52242 100755
--- a/test-branches.sh
+++ b/test-branches.sh
@@ -83,16 +83,16 @@ test_remote_branch_name_quiet_when_not_in_repo() {
debug_output="$(
{
- set -x
output="$(
remote_branch_name;
)"
- set +x
} 2>&1
echo "$output"
)"
- usages="$(echo "$debug_output" | grep 'fatal: ' | wc -l)"
+ usages="$(echo "$debug_output" | grep -E "(usage|fatal):" | wc -l)"
+
+ echo "$debug_output"
assertEquals " 0" "$usages"