Merge pull request #140300 from superherointj/updateScript-fix-escape

Fix escape on updateScript of fluxcd, k3s, linode-cli
This commit is contained in:
Jörg Thalheim 2021-10-03 08:32:12 +01:00 committed by GitHub
commit 4abd92c2e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -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)
setKV () {
sed -i "s/$1 = \".*\"/$1 = \"$2\"/" ./default.nix
sed -i "s|$1 = \".*\"|$1 = \"$2\"|" ./default.nix
}
setKV version ${VERSION}

View file

@ -45,7 +45,7 @@ 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}

View file

@ -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)
setKV () {
sed -i "s/$1 = \".*\"/$1 = \"$2\"/" default.nix
sed -i "s|$1 = \".*\"|$1 = \"$2\"|" ./default.nix
}
setKV specVersion ${SPEC_VERSION}