]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Catch errors in pre-commit hook
authorMichal Sojka <michal.sojka@cvut.cz>
Tue, 13 Oct 2020 21:26:56 +0000 (23:26 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Tue, 13 Oct 2020 21:26:56 +0000 (23:26 +0200)
contrib/hooks/pre-commit

index 41e4636a701dcd9d7bae746281a837991abe1185..7f4a498cce5b63706e11df6eeb21c8bff4a5a647 100755 (executable)
@@ -2,7 +2,7 @@
 
 # git pre-commit hook
 
-set -e
+set -eo pipefail
 
 # Make README.pod be always in sync with novaboot - work with objects
 # in the index (what is being committed), not with what is in the