diff options
author | Tails developers <tails@boum.org> | 2012-11-03 18:34:08 +0100 |
---|---|---|
committer | Tails developers <tails@boum.org> | 2012-11-03 18:36:23 +0100 |
commit | 88061c044229cd2a277a7a12487133aeab93ba96 (patch) | |
tree | 5965d83e897f9f5284fbbd2f96dae4ff8307f34b /templates/reprepro-export-key.sh.erb | |
parent | cca11e871c9d1d1a118e688d107cb27e9e197567 (diff) |
Make export-key fail if any command fails
Diffstat (limited to 'templates/reprepro-export-key.sh.erb')
-rw-r--r-- | templates/reprepro-export-key.sh.erb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/reprepro-export-key.sh.erb b/templates/reprepro-export-key.sh.erb index 7b3c2ed..e629f9d 100644 --- a/templates/reprepro-export-key.sh.erb +++ b/templates/reprepro-export-key.sh.erb @@ -3,6 +3,8 @@ # This file is managed by Puppet. Do not edit, any changes will be overwritten! # +set -e + KEY="$(gpg --homedir '<%= @basedir %>/.gnupg' --with-colon --list-secret-keys | cut -d : -f 5 | head -n 1)" if [ -n "$KEY" ]; then |