mirror of
https://github.com/spring-cloud/spring-cloud-build.git
synced 2026-09-17 12:49:00 +00:00
Don't fail if shellcheck is to be installed manually
This commit is contained in:
@@ -22,3 +22,7 @@ indent_size = 2
|
|||||||
[*.yaml]
|
[*.yaml]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.sh]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
@@ -40,10 +40,14 @@ case $1 in
|
|||||||
rm -vf -- "${SHELLCHECK_ARCHIVE}"
|
rm -vf -- "${SHELLCHECK_ARCHIVE}"
|
||||||
popd
|
popd
|
||||||
else
|
else
|
||||||
echo "It seems that automatic installation is not supported on your platform."
|
shellcheckInstalled="false"
|
||||||
echo "Please install shellcheck manually:"
|
shellcheck --version && shellcheckInstalled="true" || echo "No shellcheck installed"
|
||||||
echo " https://github.com/koalaman/shellcheck#installing"
|
if [[ "${shellcheckInstalled}" == "false" ]]; then
|
||||||
exit 0
|
echo "It seems that automatic installation is not supported on your platform."
|
||||||
|
echo "Please install shellcheck manually:"
|
||||||
|
echo " https://github.com/koalaman/shellcheck#installing"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
run-shellcheck)
|
run-shellcheck)
|
||||||
|
|||||||
Reference in New Issue
Block a user