From 19131b1b47864bbd598aaebdf9f11c8547ca6733 Mon Sep 17 00:00:00 2001 From: sondresjolyst Date: Thu, 14 Sep 2023 09:05:18 +0200 Subject: [PATCH] remove duplicate code --- scripts/acr/update_acr_whitelist.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/acr/update_acr_whitelist.sh b/scripts/acr/update_acr_whitelist.sh index 719144dd1..b621a7ea3 100755 --- a/scripts/acr/update_acr_whitelist.sh +++ b/scripts/acr/update_acr_whitelist.sh @@ -124,17 +124,12 @@ MASTER_ACR_IP_WHITELIST=$(az keyvault secret show \ --vault-name "${AZ_RESOURCE_KEYVAULT}" \ --name "${SECRET_NAME}" \ --query="value" \ - --output tsv | base64 --decode | jq '{whitelist:.whitelist | unique_by(.ip) |sort_by(.location | ascii_downcase)}' 2>/dev/null) + --output tsv | base64 --decode | jq '{whitelist:.whitelist | unique_by(.ip) | sort_by(.location | ascii_downcase)}' 2>/dev/null) ####################################################################################### ### Run interactive wizard to modify IP whitelist ### -MASTER_ACR_IP_WHITELIST=$(az keyvault secret show \ - --vault-name "${AZ_RESOURCE_KEYVAULT}" \ - --name "${SECRET_NAME}" \ - --query="value" \ - --output tsv | base64 --decode | jq '{whitelist:.whitelist | unique_by(.ip) | sort_by(.location | ascii_downcase)}' 2>/dev/null) temp_file_path="/tmp/$(uuidgen)" if [[ -n "${IP_MASK}" ]]; then