Skip to content

Commit

Permalink
Use -n instead of negating -z
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLocehiliosan committed Apr 8, 2016
1 parent 1f2bd1f commit 340f88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/108_accept_alt.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 340f88b

Please sign in to comment.