fluxcd: fix escape on updateScript

This commit is contained in:
superherointj 2021-10-02 13:40:37 -03:00
parent 39f00331dd
commit bf2a70691b
2 changed files with 1 additions and 2 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) 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}

View File

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