From 340f88bd52bfc715569875876eb398bdba925c31 Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Fri, 8 Apr 2016 17:30:18 -0500 Subject: [PATCH] Use `-n` instead of negating `-z` --- test/108_accept_alt.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/108_accept_alt.bats b/test/108_accept_alt.bats index fcf04c3..19997d0 100644 --- a/test/108_accept_alt.bats +++ b/test/108_accept_alt.bats @@ -55,7 +55,7 @@ function test_alt() { else #; running any passed through Git command should trigger auto-alt run "${T_YADM_Y[@]}" status - if [ ! -z "$auto_alt" ] && [[ "$output" =~ Linking.+$link_name ]]; then + if [ -n "$auto_alt" ] && [[ "$output" =~ Linking.+$link_name ]]; then echo "ERROR: Reporting of link should not happen" return 1 fi