From 34d0fc42c3a24222c709c42876e3a1d8b1aac747 Mon Sep 17 00:00:00 2001 From: Bin Liang Date: Mon, 18 Mar 2024 12:33:00 +0800 Subject: [PATCH] fix error in install.sh and build.sh (#178) --- build.sh | 4 ++-- deploy/kubernetes_v1.21/kubernetes/install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 44ffa5fe..66ab122e 100644 --- a/build.sh +++ b/build.sh @@ -68,7 +68,7 @@ if [ ! -f "$varFile" ]; then echo "variables.txt not exists" exit 1 fi -cat $varFile | awk -F ':' '{print "replaceVar", $1, $2 | "/bin/bash"}' +cat $varFile | awk -F ':' '{print "replaceVar", $1, $2}' | "/bin/bash" cd $workdir zip -r "${pkg_name}" ${folder_name} @@ -103,7 +103,7 @@ if [ ! -f "$varFile" ]; then echo "variables.txt not exists" exit 1 fi -cat $varFile | awk -F ':' '{print "replaceVar", $1, $2 | "/bin/bash"}' +cat $varFile | awk -F ':' '{print "replaceVar", $1, $2}' | "/bin/bash" cd $workdir zip -r "${pkg_name}" ${folder_name} #md5sum ${pkg_name} > "${pkg_name}.md5sum" diff --git a/deploy/kubernetes_v1.21/kubernetes/install.sh b/deploy/kubernetes_v1.21/kubernetes/install.sh index 9e702157..79df04ba 100755 --- a/deploy/kubernetes_v1.21/kubernetes/install.sh +++ b/deploy/kubernetes_v1.21/kubernetes/install.sh @@ -24,7 +24,7 @@ fi export -f replaceVar -cat $varFile | awk -F ':' '{print "replaceVar", $1, $2 | "/bin/bash"}' +cat $varFile | awk -F ':' '{print "replaceVar", $1, $2}' | "/bin/bash" kubectl apply -f namespace.yaml kubectl create secret generic polaris-sidecar-injector -n polaris-system \