;;
*)
echo "Multiple primary secret keys found:"
- for key in $(echo "$gpgSecOut" | cut -d: -f5) ; do
- echo " $key"
- done
+ echo "$gpgSecOut" | cut -d: -f5
echo "Please specify which primary key to use."
failure
;;
fi
# if authentication key is valid, prompt to continue
if [ "$validity" = 'u' ] ; then
- echo "A valid authentication key already exists for primary key '$keyID'."
+ echo "A valid authentication key already exists for primary key '$keyID'." 1>&2
if [ "$PROMPT" = "true" ] ; then
read -p "Are you sure you would like to generate another one? (y/N) " OK; OK=${OK:N}
if [ "${OK/y/Y}" != 'Y' ] ; then
;;
'version'|'v')
- echo "$VERSION"
+ version
;;
'--help'|'help'|'-h'|'h'|'?')