summaryrefslogtreecommitdiff
path: root/templates/reprepro-export-key.sh.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/reprepro-export-key.sh.erb')
-rw-r--r--templates/reprepro-export-key.sh.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/reprepro-export-key.sh.erb b/templates/reprepro-export-key.sh.erb
index 97e111a..c11a530 100644
--- a/templates/reprepro-export-key.sh.erb
+++ b/templates/reprepro-export-key.sh.erb
@@ -5,7 +5,7 @@
KEY="$(gpg --homedir <%= @basedir %>/.gnupg --with-colon --list-secret-keys | cut -d : -f 5 | head -n 1)"
-if [ ! -z "$KEY" ]; then
+if [ -n "$KEY" ]; then
tempfile=$(mktemp)
destfile=<%= @basedir %>/key.asc
gpg --homedir <%= @basedir %>/.gnupg --export --armor $KEY > "$tempfile"