We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bc
1 parent caaf911 commit 9ba1cc7Copy full SHA for 9ba1cc7
tests/bench
@@ -8,6 +8,7 @@ for sample in "$@"; do
8
run=$(awk '/\/after\/syntax\/css\.vim$/ {sum += $2} END {print sum}' "$s")
9
rm $s
10
echo "$run${multi:+\t$sample}"
11
- total=$(echo "${total:-0} + ${run:-0}" |bc -ql)
+ total="${total:-0} + ${run:-0}"
12
done
13
-[ -n "$multi" ] && echo "$total\t(total)"
+# if multi, show the sum total. otherwise, return true only if we had a run.
14
+[ -n "$multi" ] && echo "$(echo "$total" |bc -ql)\t(total)" || [ -n "$run" ]
0 commit comments