Commit 5b6111e7 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

tidy up the code a bit.

parent 766ad1f7
...@@ -34,12 +34,12 @@ function verify_gpg_passphrase() { ...@@ -34,12 +34,12 @@ function verify_gpg_passphrase() {
} }
# MAIN # MAIN
if [ -z $1 ]; keyfile=${1:-''}
if [ -z $keyfile ];
then then
verify_gpg_passphrase verify_gpg_passphrase
[ $foundkey -ne 0 ] && abort "Unable to decrypt." [ $foundkey -ne 0 ] && abort "Unable to decrypt."
else else
keyfile="$1"
[ ! -f $keyfile ] && abort "unable to read $keyfile." [ ! -f $keyfile ] && abort "unable to read $keyfile."
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment