exit not return
This commit is contained in:
parent
bd7903b4fb
commit
9e55fee173
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue