github.com/argoproj/argo-cd@v1.8.7/hack/gpg-wrapper.sh (about)

     1  #!/bin/sh
     2  # Simple wrapper around gpg to prevent exit code != 0
     3  ARGS=$*
     4  OUTPUT=$(gpg $ARGS 2>&1)
     5  IFS=''
     6  RET=$?
     7  case "$RET" in
     8  0)
     9  	echo $OUTPUT
    10  	;;
    11  1)
    12  	echo $OUTPUT
    13  	RET=0
    14  	;;
    15  *)
    16  	echo $OUTPUT >&2
    17  	;;
    18  esac
    19  exit $RET