Skip to content

Commit

Permalink
Suppress output in json mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Jan 14, 2020
1 parent 094acb2 commit 3220561
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ CMD="cargo build --$PROFILE -p $PACKAGE --target-dir target/srtool"
if [ ! -z "$VERBOSE" ]; then
time $CMD
else
$CMD
if [[ "$*" == *"--json"* ]]; then
$CMD > /dev/null 2>&1
else
$CMD
fi
fi

# The following would be nice but not in rust stable yet
Expand Down

0 comments on commit 3220561

Please sign in to comment.