From f931e2850a94dfc21a9f303c76f120d24e206cfe Mon Sep 17 00:00:00 2001 From: Simone Ruffilli Date: Sun, 9 Oct 2022 17:00:45 +0200 Subject: [PATCH] Update ipprefix_by_netmask.sh When code was moved from terraform template to separate file, "$$" (used to print $ on a tf template) was wrongly left behind. This fixes the bug. --- .../simple-nva/files/ipprefix_by_netmask.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cloud-config-container/simple-nva/files/ipprefix_by_netmask.sh b/modules/cloud-config-container/simple-nva/files/ipprefix_by_netmask.sh index 405c164982..a1c69822df 100644 --- a/modules/cloud-config-container/simple-nva/files/ipprefix_by_netmask.sh +++ b/modules/cloud-config-container/simple-nva/files/ipprefix_by_netmask.sh @@ -15,7 +15,7 @@ # limitations under the License. # https://stackoverflow.com/questions/50413579/bash-convert-netmask-in-cidr-notation -c=0 x=0$(printf '%o' $${1//./ }) +c=0 x=0$(printf '%o' ${1//./ }) while [ $x -gt 0 ]; do let c+=$((x % 2)) 'x>>=1' done