Skip to content

Commit 14d439f

Browse files
authored
Merge pull request #5833 from stacks-network/chore/update_replay_script
fix bash arithmetic - typo in block-replay.sh contrib script
2 parents bc9fa99 + fe08727 commit 14d439f

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)