Install shellcheck if needed

This commit is contained in:
Bob Mottram 2018-03-02 19:36:51 +00:00
parent 1de2c88d04
commit 087115fa23
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ function test_app_function_type {
}
function test_static_analysis {
if [ ! -f /usr/bin/shellcheck ]; then
apt-get -yq install shellcheck
fi
FILES="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-*"
for filename in $FILES