From d7e226e46f116667c854cf9abaaf38f015c10fdc Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Sun, 3 Sep 2023 15:06:20 -0700 Subject: [PATCH] force RLREL in sync scripts --- sync/beta-release-sync-to-staging.sh | 6 ++++++ sync/lh-release-sync-to-staging.sh | 6 ++++++ sync/sync-to-staging.delete.sh | 1 + 3 files changed, 13 insertions(+) diff --git a/sync/beta-release-sync-to-staging.sh b/sync/beta-release-sync-to-staging.sh index 486b55f..a3120a5 100644 --- a/sync/beta-release-sync-to-staging.sh +++ b/sync/beta-release-sync-to-staging.sh @@ -6,11 +6,17 @@ # Source common variables # shellcheck disable=SC2046,1091,1090 export SHORT=Rocky +export RLREL=beta source $(dirname "$0")/common # Major Version (eg, 8) MAJ=${RLVER} +if [[ "${RLVER}" -ne "8" ]]; then + echo "This is only used for Rocky Linux 8 releases." + exit 1 +fi + # sync all pieces of a release, including extras, nfv, etc for COMPOSE in "${NONSIG_COMPOSE[@]}"; do echo "${COMPOSE}: Syncing" diff --git a/sync/lh-release-sync-to-staging.sh b/sync/lh-release-sync-to-staging.sh index ec40ec0..f180303 100644 --- a/sync/lh-release-sync-to-staging.sh +++ b/sync/lh-release-sync-to-staging.sh @@ -6,11 +6,17 @@ # Source common variables # shellcheck disable=SC2046,1091,1090 export SHORT=Rocky +export RLREL=lh source $(dirname "$0")/common # Major Version (eg, 8) MAJ=${RLVER} +if [[ "${RLVER}" -ne "8" ]]; then + echo "This is only used for Rocky Linux 8 releases." + exit 1 +fi + # sync all pieces of a release, including extras, nfv, etc for COMPOSE in "${NONSIG_COMPOSE[@]}"; do echo "${COMPOSE}: Syncing" diff --git a/sync/sync-to-staging.delete.sh b/sync/sync-to-staging.delete.sh index 3da73ef..cf175d0 100644 --- a/sync/sync-to-staging.delete.sh +++ b/sync/sync-to-staging.delete.sh @@ -14,6 +14,7 @@ fi if [[ "${RLVER}" -eq "8" ]]; then echo "This is only used for Rocky Linux 9+ releases." + exit 1 fi # Major Version (eg, 8)