From 9e55fee173ece96946f23b6fd24ac6187ae1c177 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 1 Jun 2017 18:15:08 +0100 Subject: [PATCH] exit not return --- src/freedombone-splitkey | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-splitkey b/src/freedombone-splitkey index 3d08a2ff..871f6ba7 100755 --- a/src/freedombone-splitkey +++ b/src/freedombone-splitkey @@ -108,7 +108,7 @@ KEYID=$(su -c "gpg --list-keys $MY_EMAIL_ADDRESS | grep 'pub '" - \ $MY_USERNAME | awk -F ' ' '{print $2}' | awk -F '/' '{print $2}') if [ ${#KEYID} -lt 4 ]; then echo $"gpg key for $MY_EMAIL_ADDRESS was not found" - return 3682 + exit 3682 fi MY_BACKUP_KEY_ID=$(gpg --list-keys "$MY_NAME (backup key)" | \ @@ -116,7 +116,7 @@ MY_BACKUP_KEY_ID=$(gpg --list-keys "$MY_NAME (backup key)" | \ awk -F '/' '{print $2}') if [ ${#MY_BACKUP_KEY_ID} -lt 4 ]; then echo $"gpg backup key for '$MY_NAME' was not found" - return 58213 + exit 58213 fi # create the key file