From a3c2190c8a6b15a8934c2f812131241314687add Mon Sep 17 00:00:00 2001 From: Simon Let Date: Sun, 6 Oct 2019 19:23:56 +0200 Subject: [PATCH] extend zsh syntax check on more files --- scripts/test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 3eca974..cbd1de6 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -7,8 +7,10 @@ for f in scripts/*.sh; do shellcheck $f --shell=bash --severity=error || exit 1 done -echo "Checking Zsh syntax of scripts/shellrc.sh ..." -! zsh -n scripts/shellrc.sh && echo "Zsh syntax check failed!" && exit 1 +for f in scripts/{shellrc,util,reshctl,hooks}.sh; do + echo "Checking Zsh syntax of $f ..." + ! zsh -n scripts/shellrc.sh && echo "Zsh syntax check failed!" && exit 1 +done for sh in bash zsh; do echo "Running functions in scripts/shellrc.sh using $sh ..."