Skip to content

Commit d128e24

Browse files
authored
chore: Fix run-all benchmarks script (dfinity#3692)
1 parent cfdddee commit d128e24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rs/execution_environment/benches/run-all-benchmarks.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ run() {
4444
local ret="${?}"
4545
set -e
4646
# Stop repeating the benchmark if there are no changes.
47-
[ "${ret}" -eq 0 ] && echo "${REPEAT}" >"${counter_file}"
47+
if [ "${ret}" -eq 0 ]; then
48+
echo "${REPEAT}" >"${counter_file}"
49+
fi
4850
fi
4951
}
5052

0 commit comments

Comments
 (0)