From: Fatih Degirmenci Date: Mon, 16 Dec 2019 09:55:24 +0000 (+0100) Subject: cloud-infra: Specify lookup path for shellcheck X-Git-Url: https://gerrit.nordix.org/gitweb?a=commitdiff_plain;h=718e23d7c9a55fb38e69264045cb52dc6dc5481d;p=infra%2Fcicd.git cloud-infra: Specify lookup path for shellcheck Change-Id: Ic071091030e606e342b4e0cb16ab657ae1d48ad2 --- diff --git a/jjb/cloud-infra/scripts/cloud-infra-shellcheck.sh b/jjb/cloud-infra/scripts/cloud-infra-shellcheck.sh index 1144f14a9..6c6f69a21 100644 --- a/jjb/cloud-infra/scripts/cloud-infra-shellcheck.sh +++ b/jjb/cloud-infra/scripts/cloud-infra-shellcheck.sh @@ -33,7 +33,8 @@ declare -i exit_code=0 # lint the bash scripts for shell_script in $(find ${WORKSPACE}/ -type f -name *.sh); do echo "--> Checking '${shell_script}' shell script..." - shellcheck --color=never ${shell_script} + shellcheck --color=never --source-path="${WORKSPACE}" --external-sources \ + --format=tty ${shell_script} lint_exit_code=$? if [[ $lint_exit_code != 0 ]]; then exit_code=$lint_exit_code