diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-19 02:05:05 -0500 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-19 02:05:05 -0500 |
commit | 771cbc184298f4e698dd960386cb1b9259746c34 (patch) | |
tree | 981536a65b4692a5a69a4bcad476c017d3524aa5 /src | |
parent | 07e96da7841640d7f38318faec682fb4da1ba7d0 (diff) |
add PROMPT respect in get_gpg_expiration
Diffstat (limited to 'src')
-rw-r--r-- | src/share/common | 2 |
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 |