From 258466c0e34c200fdd10758f6dd6006f6b7cfd78 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Sun, 3 Sep 2023 15:15:05 -0700 Subject: [PATCH] fix loops --- sync/beta-release-sync-to-staging.sh | 2 +- sync/lh-release-sync-to-staging.sh | 2 +- sync/minor-release-sync-to-staging.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sync/beta-release-sync-to-staging.sh b/sync/beta-release-sync-to-staging.sh index a3120a5..5e1aa90 100644 --- a/sync/beta-release-sync-to-staging.sh +++ b/sync/beta-release-sync-to-staging.sh @@ -65,7 +65,7 @@ done # Create symlinks for repos that were once separate from the main compose -for LINK in "${LINK_REPOS[@]}"; do +for LINK in "${!LINK_REPOS[@]}"; do ln -sr "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/${LINK}" \ "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/${LINK_REPOS[$LINK]}" done diff --git a/sync/lh-release-sync-to-staging.sh b/sync/lh-release-sync-to-staging.sh index f180303..8ba381c 100644 --- a/sync/lh-release-sync-to-staging.sh +++ b/sync/lh-release-sync-to-staging.sh @@ -65,7 +65,7 @@ done # Create symlinks for repos that were once separate from the main compose -for LINK in "${LINK_REPOS[@]}"; do +for LINK in "${!LINK_REPOS[@]}"; do ln -sr "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/${LINK}" \ "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/${LINK_REPOS[$LINK]}" done diff --git a/sync/minor-release-sync-to-staging.sh b/sync/minor-release-sync-to-staging.sh index d207a2f..dd7c2cd 100644 --- a/sync/minor-release-sync-to-staging.sh +++ b/sync/minor-release-sync-to-staging.sh @@ -71,7 +71,7 @@ done # Create symlinks for repos that were once separate from the main compose -for LINK in "${LINK_REPOS[@]}"; do +for LINK in "${!LINK_REPOS[@]}"; do ln -sr "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/${LINK}" \ "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/${LINK_REPOS[$LINK]}" done