From 255434fbd90c3ba76cbd4fdd8a1288e665344ab0 Mon Sep 17 00:00:00 2001 From: Tails developers Date: Sat, 3 Nov 2012 18:25:01 +0100 Subject: Test for 'something' instead of 'not nothing' in export-key --- templates/reprepro-export-key.sh.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') 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" -- cgit v1.2.3