From fac703d878e45b227b5e938849466fe58d180253 Mon Sep 17 00:00:00 2001 From: lns Date: Sat, 20 May 2023 17:16:31 +0200 Subject: Improved helper scripts to be more restrictive. Signed-off-by: lns --- utils/azure_ip_addresses_download.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/azure_ip_addresses_download.sh') diff --git a/utils/azure_ip_addresses_download.sh b/utils/azure_ip_addresses_download.sh index 3e20b6119..0f7ed08e6 100755 --- a/utils/azure_ip_addresses_download.sh +++ b/utils/azure_ip_addresses_download.sh @@ -19,7 +19,7 @@ if [ "${http_response}" != "200" ]; then exit 1 fi -ORIGIN="$(grep -E 'ServiceTags_Public_[[:digit:]]+.json' ${LINK_TMP} | grep -o -E 'href=\"[^"]+' | sed 's/href="//' | uniq)" +ORIGIN="$(grep -E 'ServiceTags_Public_[[:digit:]]+.json' ${LINK_TMP} | grep -o -E 'href="[^"]+' | sed 's/href="//' | uniq)" rm -f ${LINK_TMP} if [ -z "${ORIGIN}" ]; then echo "Error ${LINK_ORIGIN} does not contain the url format!" -- cgit v1.2.3