exit not return

This commit is contained in:
Bob Mottram 2017-06-01 18:15:08 +01:00
parent bd7903b4fb
commit 9e55fee173
1 changed files with 2 additions and 2 deletions

View File

@ -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