X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Fcloud-infra%2Fscripts%2Fcloud-infra-shellcheck.sh;h=6c6f69a216148c81392ceee90b7c4bd7e403f4e6;hb=718e23d7c9a55fb38e69264045cb52dc6dc5481d;hp=1144f14a9ebc943b1178d50385bcf434a1e561d2;hpb=2dacaf5d621dfa8dcb78cddd7013dae047a12bde;p=infra%2Fcicd.git diff --git a/jjb/cloud-infra/scripts/cloud-infra-shellcheck.sh b/jjb/cloud-infra/scripts/cloud-infra-shellcheck.sh index 1144f14a..6c6f69a2 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