From 85900bc270cbbbf9f580aa4e7f0ae46291b93d8d Mon Sep 17 00:00:00 2001 From: Robert Rose Date: Sun, 17 Nov 2024 18:49:47 +0100 Subject: [PATCH] k3s: fix commit output of update script --- pkgs/applications/networking/cluster/k3s/update-script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/k3s/update-script.sh b/pkgs/applications/networking/cluster/k3s/update-script.sh index ac451806ff66..a0087e5debca 100755 --- a/pkgs/applications/networking/cluster/k3s/update-script.sh +++ b/pkgs/applications/networking/cluster/k3s/update-script.sh @@ -10,6 +10,7 @@ trap "rm -rf ${WORKDIR}" EXIT NIXPKGS_ROOT="$(git rev-parse --show-toplevel)"/ NIXPKGS_K3S_PATH=$(cd $(dirname ${BASH_SOURCE[0]}); pwd -P)/ +OLD_VERSION="$(nix-instantiate --eval -E "with import $NIXPKGS_ROOT. {}; k3s_1_${MINOR_VERSION}.version or (builtins.parseDrvName k3s_1_${MINOR_VERSION}.name).version" | tr -d '"')" cd ${NIXPKGS_K3S_PATH} cd 1_${MINOR_VERSION} @@ -153,12 +154,11 @@ fi # Implement commit # See https://nixos.org/manual/nixpkgs/stable/#var-passthru-updateScript-commit -OLD_VERSION="$(nix-instantiate --eval -E "with import $NIXPKGS_ROOT. {}; k3s.version or (builtins.parseDrvName k3s.name).version" | tr -d '"')" cat <