summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorTails developers <tails@boum.org>2012-11-03 18:25:01 +0100
committerTails developers <tails@boum.org>2012-11-03 18:36:22 +0100
commit255434fbd90c3ba76cbd4fdd8a1288e665344ab0 (patch)
tree60aad932bdde83b7439d34b94a9c058aff8f2849 /templates
parentf4869008cad7acb3ec67ccee309cbad0533045ad (diff)
Test for 'something' instead of 'not nothing' in export-key
Diffstat (limited to 'templates')
-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"