Support XDG_CACHE_HOME environment variable (#93)

This commit is contained in:
Rafael Bodill 2018-11-26 22:21:43 +02:00 committed by Ahmet Alp Balkan
parent ec994aff89
commit 407a84ce9e
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ set -eou pipefail
IFS=$'\n\t' IFS=$'\n\t'
SELF_CMD="$0" SELF_CMD="$0"
KUBECTX="${HOME}/.kube/kubectx" KUBECTX="${XDG_CACHE_HOME:-$HOME/.kube}/kubectx"
usage() { usage() {
cat <<"EOF" cat <<"EOF"

2
kubens
View File

@ -22,7 +22,7 @@ set -eou pipefail
IFS=$'\n\t' IFS=$'\n\t'
SELF_CMD="$0" SELF_CMD="$0"
KUBENS_DIR="${HOME}/.kube/kubens" KUBENS_DIR="${XDG_CACHE_HOME:-$HOME/.kube}/kubens"
usage() { usage() {
cat <<"EOF" cat <<"EOF"