commit 45503a5e54e2f864421e2a6d618f8d7407c35c99 parent f7fd1453d468ed770de3a43fa43cb827f95ef655 Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Mon, 20 Nov 2017 12:56:40 +0100 Error out on failed init function Diffstat:
| M | bin/confz | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bin/confz b/bin/confz @@ -84,7 +84,9 @@ confz_load() { done for func in ${(o)confz_functions}; do - [[ $func == *_init ]] && $func + if [[ $func == *_init ]]; then + $func || die "Init function failed: $func" + fi done }