github.com/argoproj/argo-cd/v3@v3.2.1/cmd/argocd/commands/testdata/argocd-error (about) 1 #!/bin/bash 2 3 if [[ "$1" == "version" ]] 4 then 5 echo "1.0.0" 6 exit 0 7 fi 8 9 if [[ "$1" == "config" ]] 10 then 11 echo "$KUBECONFIG" 12 exit 0 13 fi 14 15 # Default behavior: simulate an error 16 echo "Error: I am a plugin named argocd-error, and I encountered an error." >&2 17 exit 1