diff --git a/update-keys b/update-keys
index c0e754fcda2014549a529fcae40e167d7f9f96e6..d13b6951d00971254f80458d1e51bf146c640971 100755
--- a/update-keys
+++ b/update-keys
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -e
+
 export LANG=C
 
 TMPDIR=$(mktemp -d)