summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/share/common2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/common b/src/share/common
index d185fdd..31f8ddd 100644
--- a/src/share/common
+++ b/src/share/common
@@ -291,7 +291,7 @@ get_gpg_expiration() {
keyExpire="$1"
- if [ -z "$keyExpire" ]; then
+ if [ -z "$keyExpire" -a "$PROMPT" = 'true' ]; then
cat >&2 <<EOF
Please specify how long the key should be valid.
0 = key does not expire