From 21bac01e6d6ac996ec1239b57d971f63ce0f391a Mon Sep 17 00:00:00 2001 From: Harrison Kiang Date: Thu, 5 Mar 2020 00:21:49 -0600 Subject: [PATCH] unset temp func on fail case --- plugins/kubectl/kubectl.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh index b64154b65..e58a33520 100644 --- a/plugins/kubectl/kubectl.plugin.zsh +++ b/plugins/kubectl/kubectl.plugin.zsh @@ -86,6 +86,7 @@ alias kdecs=' _kdecs() { if [ $(jq --version) != "jq-1.6" ]; then echo "kdecs requires jq-1.6 to use the base64d format"; + unset -f _kdecs return 1 fi kubectl get secret "$@" -o json | jq ".data | map_values(. | @base64d )";