Install command to do static analysis on bash scripts

This commit is contained in:
Bob Mottram 2018-02-25 10:29:50 +00:00
parent d37241040b
commit 6a9bd38440
2 changed files with 9 additions and 0 deletions

View File

@ -1699,6 +1699,7 @@ function image_setup_utils {
chroot "$rootdir" apt-get -yq dist-upgrade
chroot "$rootdir" apt-get -yq install ca-certificates
chroot "$rootdir" apt-get -yq install apt-utils
chroot "$rootdir" apt-get -yq install shellcheck
if [[ $ARCHITECTURE == 'amd64' ]]; then
chroot "$rootdir" apt-get -yq install linux-image-amd64

View File

@ -787,6 +787,11 @@ function congestion_control {
fi
}
function install_shellcheck {
# Used by the tests command
apt-get -yq install shellcheck
}
function setup_utils {
read_config_param "PROJECT_REPO"
write_config_param "PROJECT_REPO" "$PROJECT_REPO"
@ -1006,6 +1011,9 @@ function setup_utils {
function_check setup_powerline
setup_powerline
function_check install_shellcheck
install_shellcheck
}
function setup_email {