mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
unset temp func on fail case
This commit is contained in:
parent
b35b7a75f1
commit
21bac01e6d
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ alias kdecs='
|
||||||
_kdecs() {
|
_kdecs() {
|
||||||
if [ $(jq --version) != "jq-1.6" ]; then
|
if [ $(jq --version) != "jq-1.6" ]; then
|
||||||
echo "kdecs requires jq-1.6 to use the base64d format";
|
echo "kdecs requires jq-1.6 to use the base64d format";
|
||||||
|
unset -f _kdecs
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
kubectl get secret "$@" -o json | jq ".data | map_values(. | @base64d )";
|
kubectl get secret "$@" -o json | jq ".data | map_values(. | @base64d )";
|
||||||
|
|
Loading…
Reference in a new issue