From 968d7f326c91306fbf76685aa1af496b329245d0 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Wed, 31 Mar 2021 09:05:59 +0200 Subject: [PATCH] Don't sync if no orb is used Don't sync the Prometheus CircleCI orb version if it's not used by the repo's config. Signed-off-by: Ben Kochie --- scripts/sync_repo_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sync_repo_files.sh b/scripts/sync_repo_files.sh index a52943da9..31aa56745 100755 --- a/scripts/sync_repo_files.sh +++ b/scripts/sync_repo_files.sh @@ -104,7 +104,7 @@ check_circleci_orb() { return 1 fi - if [[ "${orb_version}" != "${prometheus_orb_version}" ]]; then + if [[ "${orb_version}" != "null" && "${orb_version}" != "${prometheus_orb_version}" ]]; then echo "CircleCI-orb" fi }