summaryrefslogtreecommitdiff
path: root/templates/reprepro-export-key.sh.erb
diff options
context:
space:
mode:
authorTails developers <tails@boum.org>2012-11-03 18:26:31 +0100
committerTails developers <tails@boum.org>2012-11-03 18:36:22 +0100
commit50a7eb8a1994808521e5699ec533628670e73810 (patch)
tree27533d1485b44eafbcd41d258a2dc86fd319cd1d /templates/reprepro-export-key.sh.erb
parent255434fbd90c3ba76cbd4fdd8a1288e665344ab0 (diff)
Use Debian style indentation in export-key
Diffstat (limited to 'templates/reprepro-export-key.sh.erb')
-rw-r--r--templates/reprepro-export-key.sh.erb12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/reprepro-export-key.sh.erb b/templates/reprepro-export-key.sh.erb
index c11a530..dace01e 100644
--- a/templates/reprepro-export-key.sh.erb
+++ b/templates/reprepro-export-key.sh.erb
@@ -6,10 +6,10 @@
KEY="$(gpg --homedir <%= @basedir %>/.gnupg --with-colon --list-secret-keys | cut -d : -f 5 | head -n 1)"
if [ -n "$KEY" ]; then
- tempfile=$(mktemp)
- destfile=<%= @basedir %>/key.asc
- gpg --homedir <%= @basedir %>/.gnupg --export --armor $KEY > "$tempfile"
- mv "$tempfile" "$destfile"
- chown reprepro:reprepro "$destfile"
- chmod 0664 "$destfile"
+ tempfile=$(mktemp)
+ destfile=<%= @basedir %>/key.asc
+ gpg --homedir <%= @basedir %>/.gnupg --export --armor $KEY > "$tempfile"
+ mv "$tempfile" "$destfile"
+ chown reprepro:reprepro "$destfile"
+ chmod 0664 "$destfile"
fi