diff options
author | Tails developers <tails@boum.org> | 2012-11-03 18:25:01 +0100 |
---|---|---|
committer | Tails developers <tails@boum.org> | 2012-11-03 18:36:22 +0100 |
commit | 255434fbd90c3ba76cbd4fdd8a1288e665344ab0 (patch) | |
tree | 60aad932bdde83b7439d34b94a9c058aff8f2849 /templates/reprepro-export-key.sh.erb | |
parent | f4869008cad7acb3ec67ccee309cbad0533045ad (diff) |
Test for 'something' instead of 'not nothing' in export-key
Diffstat (limited to 'templates/reprepro-export-key.sh.erb')
-rw-r--r-- | templates/reprepro-export-key.sh.erb | 2 |
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" |