X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=utils%2Fgpg_import_key.sh;h=f45e40919b8616c9b887d12157081edaaf3beb2e;hb=e6df54e8395a583e7d841269a3f0e9cac9c21b7d;hp=bb11f0d451215f44f972dc3e6a78351259b077fd;hpb=3a0331dbd8686fef70ea21b4c4a236a03a560e38;p=releng.git diff --git a/utils/gpg_import_key.sh b/utils/gpg_import_key.sh index bb11f0d45..f45e40919 100755 --- a/utils/gpg_import_key.sh +++ b/utils/gpg_import_key.sh @@ -37,12 +37,12 @@ fi if ! isinstalled gnupg2; then echo "error with install" - exit 1 + exit 0 fi if ! which gsutil; then echo "error gsutil not installed"; - exit 1 + exit 0 fi if gpg2 --list-keys | grep "opnfv-helpdesk@rt.linuxfoundation.org"; then @@ -50,7 +50,7 @@ if gpg2 --list-keys | grep "opnfv-helpdesk@rt.linuxfoundation.org"; then else if [ -z "$NODE_NAME" ]; then echo "Cannot find node name" - exit 1 + exit 0 else echo "Importing key for '$NODE_NAME'"; gsutil cp gs://opnfv-signing-keys/"$NODE_NAME"-subkey . gpg2 --import "$NODE_NAME"-subkey