Skip to content

Commit

Permalink
Rewrite verbose() to work in OSX bash
Browse files Browse the repository at this point in the history
  • Loading branch information
eliben authored and martinkunc committed Sep 8, 2019
1 parent aefbbac commit df65bac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

set -e

verbose() [[ -v VERBOSE ]]
verbose() {
! test -z "$VERBOSE"
}

verbose && echo "Running tests..."
tools/test
Expand Down

0 comments on commit df65bac

Please sign in to comment.