extend zsh syntax check on more files

pull/18/head
Simon Let 6 years ago
parent 2697ee2f49
commit a3c2190c8a
  1. 4
      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 ..."
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 ..."

Loading…
Cancel
Save