k3s: fix escape on updateScript

This commit is contained in:
superherointj 2021-10-02 13:40:23 -03:00
parent c0cc04d550
commit 39f00331dd

View file

@ -44,8 +44,9 @@ CNIPLUGINS_VERSION=$(grep VERSION_CNIPLUGINS= $FILE_SCRIPTS_VERSION \
CNIPLUGINS_SHA256=$(nix-prefetch-url --quiet --unpack \
"https://github.com/rancher/plugins/archive/refs/tags/v${CNIPLUGINS_VERSION}.tar.gz")
setKV () {
sed -i "s/$1 = \".*\"/$1 = \"$2\"/" ./default.nix
sed -i "s|$1 = \".*\"|$1 = \"$2\"|" ./default.nix
}
setKV k3sVersion ${K3S_VERSION}