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() {
}
# MAIN
if [ -z $1 ];
keyfile=${1:-''}
if [ -z $keyfile ];
then
verify_gpg_passphrase
[ $foundkey -ne 0 ] && abort "Unable to decrypt."
else
keyfile="$1"
[ ! -f $keyfile ] && abort "unable to read $keyfile."
fi
......
Supports Markdown
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