summaryrefslogtreecommitdiff
path: root/src/share
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-02-19 02:05:05 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-02-19 02:05:05 -0500
commit771cbc184298f4e698dd960386cb1b9259746c34 (patch)
tree981536a65b4692a5a69a4bcad476c017d3524aa5 /src/share
parent07e96da7841640d7f38318faec682fb4da1ba7d0 (diff)
add PROMPT respect in get_gpg_expiration
Diffstat (limited to 'src/share')
-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