From 833dcb8bd8dc8c2e82a51f55c4d35e586740a16f Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Mon, 31 Aug 2020 19:31:22 +0200 Subject: [PATCH] Don't check zsh files with shfmt --- lib/worker.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/worker.sh b/lib/worker.sh index d381c7d1..941d315f 100755 --- a/lib/worker.sh +++ b/lib/worker.sh @@ -168,6 +168,11 @@ function LintCodebase() { warn "Found [zsh] script" info "ShellCheck does NOT currently support zsh, skipping file" continue + elif [[ ${FILE_TYPE} == "SHELL_SHFMT" ]] && CheckZsh "${FILE}"; then + # ZSH file and we need to skip + warn "Found [zsh] script" + info "shfmt does NOT currently support zsh, skipping file" + continue fi ##################################