From 4ba791151de2da4c3b5751b4984b8a20d7ed1ade Mon Sep 17 00:00:00 2001 From: Simon Let Date: Thu, 12 Dec 2019 18:40:54 +0100 Subject: [PATCH] minor fix --- scripts/test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index cbd1de6..34fa3e0 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,15 +1,17 @@ #!/usr/bin/env bash +# very simple tests to catch simple errors in scripts +# shellcheck disable=SC2016 [ "${BASH_SOURCE[0]}" != "scripts/test.sh" ] && echo 'Run this script using `make test`' && exit 1 for f in scripts/*.sh; do echo "Running shellcheck on $f ..." - shellcheck $f --shell=bash --severity=error || exit 1 + shellcheck "$f" --shell=bash --severity=error || exit 1 done 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 + ! zsh -n "$f" && echo "Zsh syntax check failed!" && exit 1 done for sh in bash zsh; do