From 6809a5e7e1c1d1f094f3c79ce0e9a22ee2a88e45 Mon Sep 17 00:00:00 2001 From: David Costa Date: Sun, 21 Jan 2024 02:37:40 +0100 Subject: [PATCH] Do not override user KUBECONFIG (#50) --- pkgs/kubenix.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/kubenix.nix b/pkgs/kubenix.nix index fe5e670..b6b770d 100644 --- a/pkgs/kubenix.nix +++ b/pkgs/kubenix.nix @@ -34,7 +34,7 @@ runCommand "kubenix" cat < $out/bin/kubenix set -uo pipefail - export KUBECONFIG=$kubeconfig + export KUBECONFIG=\''${KUBECONFIG:-$kubeconfig} export KUBECTL_EXTERNAL_DIFF=$diff function _help() {