From 1dbc5fdc29714df54a0a17f76e9d96eed50598dd Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Aug 24 2016 10:45:05 +0000 Subject: Add basic shell syntax check target --- diff --git a/Makefile.am b/Makefile.am index 6d2698b..fd82820 100644 --- a/Makefile.am +++ b/Makefile.am @@ -86,3 +86,10 @@ bashate: $(shell_scripts) shellcheck: $(shell_scripts) $(shellcheck) $(shell_scripts) + +check-local: $(shell_scripts) + ret=0 + for file in $(shell_scripts) ; do \ + bash -n -O extglob $$file || ret=$$? ; \ + done ; \ + exit $$ret