Fix #2810: run shellcheck if it is installed

This commit is contained in:
Oliver Blanthorn 2020-09-24 15:03:51 +01:00
parent 4a016163eb
commit 2d42f3bd70
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -1,6 +1,6 @@
#!/bin/sh
cd ${0%/*}/..
if ! [ -x "$(command -v shellcheck)" ]; then
if [ -x "$(command -v shellcheck)" ]; then
GLOBIGNORE="node_modules" shellcheck -e2012 **/*.sh
else
echo "Warning: shellcheck is not installed, skipping shell scripts"