mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
19 lines
212 B
Bash
Executable File
19 lines
212 B
Bash
Executable File
#!/bin/sh
|
|
# Simple wrapper around gpg to prevent exit code != 0
|
|
OUTPUT=$(gpg "$@" 2>&1)
|
|
IFS=''
|
|
RET=$?
|
|
case "$RET" in
|
|
0)
|
|
echo "$OUTPUT"
|
|
;;
|
|
1)
|
|
echo "$OUTPUT"
|
|
RET=0
|
|
;;
|
|
*)
|
|
echo "$OUTPUT" >&2
|
|
;;
|
|
esac
|
|
exit $RET
|