Skip to content

Commit

Permalink
feat: move echo to the top to ensure proper color echoing
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Oct 23, 2020
1 parent 6022cab commit 6e66713
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/run-vader-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ function color-vader-output() {
fi

if [[ "$REPLY" = *'Success/Total'* ]]; then
echo

success="$(echo -n "$REPLY" | grep -o '[0-9]\+/' | head -n 1 | cut -d / -f 1)"
total="$(echo -n "$REPLY" | grep -o '/[0-9]\+' | head -n 1 | cut -d / -f 2)"

Expand All @@ -65,7 +67,6 @@ function color-vader-output() {
echo -en "$green"
fi

echo
echo "$REPLY"
echo -en "$nc"
echo
Expand Down

0 comments on commit 6e66713

Please sign in to comment.