k3s: fix escape on updateScript
This commit is contained in:
parent
c0cc04d550
commit
39f00331dd
|
@ -44,8 +44,9 @@ CNIPLUGINS_VERSION=$(grep VERSION_CNIPLUGINS= $FILE_SCRIPTS_VERSION \
|
||||||
CNIPLUGINS_SHA256=$(nix-prefetch-url --quiet --unpack \
|
CNIPLUGINS_SHA256=$(nix-prefetch-url --quiet --unpack \
|
||||||
"https://github.com/rancher/plugins/archive/refs/tags/v${CNIPLUGINS_VERSION}.tar.gz")
|
"https://github.com/rancher/plugins/archive/refs/tags/v${CNIPLUGINS_VERSION}.tar.gz")
|
||||||
|
|
||||||
|
|
||||||
setKV () {
|
setKV () {
|
||||||
sed -i "s/$1 = \".*\"/$1 = \"$2\"/" ./default.nix
|
sed -i "s|$1 = \".*\"|$1 = \"$2\"|" ./default.nix
|
||||||
}
|
}
|
||||||
|
|
||||||
setKV k3sVersion ${K3S_VERSION}
|
setKV k3sVersion ${K3S_VERSION}
|
||||||
|
|
Loading…
Reference in a new issue