From bf2a70691bbe7572caf94b7cf809ed689edac767 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Sat, 2 Oct 2021 13:40:37 -0300 Subject: [PATCH] fluxcd: fix escape on updateScript --- pkgs/applications/networking/cluster/fluxcd/update.sh | 2 +- pkgs/applications/networking/cluster/k3s/update.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/fluxcd/update.sh b/pkgs/applications/networking/cluster/fluxcd/update.sh index f463370e669..c1ce4b38156 100755 --- a/pkgs/applications/networking/cluster/fluxcd/update.sh +++ b/pkgs/applications/networking/cluster/fluxcd/update.sh @@ -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} diff --git a/pkgs/applications/networking/cluster/k3s/update.sh b/pkgs/applications/networking/cluster/k3s/update.sh index c0afe1041f7..79432f06c23 100755 --- a/pkgs/applications/networking/cluster/k3s/update.sh +++ b/pkgs/applications/networking/cluster/k3s/update.sh @@ -44,7 +44,6 @@ 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 }