Skip to content

Commit 478ec78

Browse files
committed
fix: Use POSIX-compliant syntax
1 parent a964ea4 commit 478ec78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/continue_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,11 @@ aliases:
259259
echo 'Fetching from remote repository'
260260
retry_count=3
261261
if [ -n "$CIRCLE_TAG" ]; then
262-
for ((i=0; i<$retry_count; i++)); do
262+
for i in $(seq 1 $retry_count); do
263263
git fetch --force --no-recurse-submodules --tags origin && break || sleep 1
264264
done
265265
elif [ -z "$CIRCLE_PR_NUMBER" ]; then
266-
for ((i=0; i<$retry_count; i++)); do
266+
for i in $(seq 1 $retry_count); do
267267
git fetch --force --no-recurse-submodules origin "+refs/heads/$CIRCLE_BRANCH:refs/remotes/origin/$CIRCLE_BRANCH" && break || sleep 1
268268
done
269269
fi

0 commit comments

Comments
 (0)