Merge pull request #140300 from superherointj/updateScript-fix-escape
Fix escape on updateScript of fluxcd, k3s, linode-cli
This commit is contained in:
commit
4abd92c2e2
|
@ -14,7 +14,7 @@ SHA256=$(nix-prefetch-url --quiet --unpack https://github.com/fluxcd/flux2/archi
|
||||||
SPEC_SHA256=$(nix-prefetch-url --quiet --unpack https://github.com/fluxcd/flux2/releases/download/${TAG}/manifests.tar.gz)
|
SPEC_SHA256=$(nix-prefetch-url --quiet --unpack https://github.com/fluxcd/flux2/releases/download/${TAG}/manifests.tar.gz)
|
||||||
|
|
||||||
setKV () {
|
setKV () {
|
||||||
sed -i "s/$1 = \".*\"/$1 = \"$2\"/" ./default.nix
|
sed -i "s|$1 = \".*\"|$1 = \"$2\"|" ./default.nix
|
||||||
}
|
}
|
||||||
|
|
||||||
setKV version ${VERSION}
|
setKV version ${VERSION}
|
||||||
|
|
|
@ -45,7 +45,7 @@ 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}
|
||||||
|
|
|
@ -21,7 +21,7 @@ VERSION=$(curl -s ${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
|
||||||
SHA256=$(nix-prefetch-url --quiet --unpack https://github.com/linode/linode-cli/archive/refs/tags/${VERSION}.tar.gz)
|
SHA256=$(nix-prefetch-url --quiet --unpack https://github.com/linode/linode-cli/archive/refs/tags/${VERSION}.tar.gz)
|
||||||
|
|
||||||
setKV () {
|
setKV () {
|
||||||
sed -i "s/$1 = \".*\"/$1 = \"$2\"/" default.nix
|
sed -i "s|$1 = \".*\"|$1 = \"$2\"|" ./default.nix
|
||||||
}
|
}
|
||||||
|
|
||||||
setKV specVersion ${SPEC_VERSION}
|
setKV specVersion ${SPEC_VERSION}
|
||||||
|
|
Loading…
Reference in a new issue