diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2021-10-14 15:07:30 -0300 |
---|---|---|
committer | superherointj <5861043+superherointj@users.noreply.github.com> | 2021-10-14 15:17:45 -0300 |
commit | 235dccbfff4fd3aa5462138d2d557ed4ab7dc6bc (patch) | |
tree | c2354f85caa0a72439ccaa9cbb3352bd69de50c1 /pkgs | |
parent | 0b32a42531e7f3609abe431274e2b4669c0c0b07 (diff) | |
download | nixpkgs-235dccbfff4fd3aa5462138d2d557ed4ab7dc6bc.tar nixpkgs-235dccbfff4fd3aa5462138d2d557ed4ab7dc6bc.tar.gz nixpkgs-235dccbfff4fd3aa5462138d2d557ed4ab7dc6bc.tar.bz2 nixpkgs-235dccbfff4fd3aa5462138d2d557ed4ab7dc6bc.tar.lz nixpkgs-235dccbfff4fd3aa5462138d2d557ed4ab7dc6bc.tar.xz nixpkgs-235dccbfff4fd3aa5462138d2d557ed4ab7dc6bc.tar.zst nixpkgs-235dccbfff4fd3aa5462138d2d557ed4ab7dc6bc.zip |
k3s: update script fix #3
Diffstat (limited to 'pkgs')
-rwxr-xr-x | pkgs/applications/networking/cluster/k3s/update.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/networking/cluster/k3s/update.sh b/pkgs/applications/networking/cluster/k3s/update.sh index 1795b48f338..7956e807e9e 100755 --- a/pkgs/applications/networking/cluster/k3s/update.sh +++ b/pkgs/applications/networking/cluster/k3s/update.sh @@ -1,7 +1,7 @@ #!/usr/bin/env nix-shell #!nix-shell -i bash -p curl gnugrep gnused jq -set -eu -o pipefail +set -x -eu -o pipefail WORKDIR=$(mktemp -d) trap "rm -rf ${WORKDIR}" EXIT @@ -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} |