Supply the --batch option to gpg so that it can run without a terminal.
# LBS_GPG_PASSPHRASE passphrase to supply to gpg, if needed
declare -a gpg_options
# LBS_GPG_PASSPHRASE passphrase to supply to gpg, if needed
declare -a gpg_options
+gpg_options=(--quiet --batch)
if [ -n "$LBS_GPG_HOME" ]; then
gpg_options=("${gpg_options[@]}" --homedir "$LBS_GPG_HOME")
if [ -n "$LBS_GPG_HOME" ]; then
gpg_options=("${gpg_options[@]}" --homedir "$LBS_GPG_HOME")