1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-02-13 04:40:59 +01:00

unset temp func on fail case

This commit is contained in:
Harrison Kiang
2020-03-05 00:21:49 -06:00
committed by GitHub
parent b35b7a75f1
commit 21bac01e6d

View File

@@ -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 )";