Skip to content

Commit fe08727

Browse files
committed
fix bash arithmetic - typo in expr
1 parent e250a95 commit fe08727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/tools/block-replay.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ configure_replay_slices() {
117117

118118
## create a copy of the linked db with <number of CORES><number of RESERVED CORES>
119119
## decrement by 1 since we already have ${SLICE_DIR}0
120-
for ((i=1;i<=$( CORES - RESERVED - 1);i++)); do
120+
for ((i=1;i<=$(( CORES - RESERVED - 1));i++)); do
121121
echo "Copying ${SLICE_DIR}0 -> ${COLYELLOW}${SLICE_DIR}${i}${COLRESET}"
122122
cp -R "${SLICE_DIR}0" "${SLICE_DIR}${i}" || {
123123
echo "${COLRED}Error${COLRESET} copying ${SLICE_DIR}0 -> ${SLICE_DIR}${i}"

0 commit comments

Comments
 (0)