From c34486a64c223bcbfbb57d9abcf107d684b815b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sun, 17 Apr 2011 01:34:39 +0200 Subject: [PATCH] gpgsm-gencert.sh: make sure not to abort after creating temp file. https://bugs.g10code.com/gnupg/issue1466 --- tools/gpgsm-gencert.sh | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/gpgsm-gencert.sh b/tools/gpgsm-gencert.sh index b209c8e..e7c812f 100755 --- a/tools/gpgsm-gencert.sh +++ b/tools/gpgsm-gencert.sh @@ -178,10 +178,10 @@ Key-Length: $KEY_LENGTH Key-Usage: $KEY_USAGE Name-DN: $NAME EOF -[ -n "$KEY_GRIP" ] && echo "Key-Grip: $KEY_GRIP" -[ -n "$EMAIL_ADDRESSES" ] && echo "$EMAIL_ADDRESSES" -[ -n "$DNS_ADDRESSES" ] && echo "$DNS_ADDRESSES" -[ -n "$URI_ADDRESSES" ] && echo "$URI_ADDRESSES" +[ -n "$KEY_GRIP" ] && echo "Key-Grip: $KEY_GRIP" || true +[ -n "$EMAIL_ADDRESSES" ] && echo "$EMAIL_ADDRESSES" || true +[ -n "$DNS_ADDRESSES" ] && echo "$DNS_ADDRESSES" || true +[ -n "$URI_ADDRESSES" ] && echo "$URI_ADDRESSES" || true ) > "$file_parameter" -- 1.7.5.rc1