Add bashate verification and fix shell errors 95/1795/2
authorchengli3 <cheng1.li@intel.com>
Thu, 17 Oct 2019 04:53:09 +0000 (12:53 +0800)
committerchengli3 <cheng1.li@intel.com>
Fri, 18 Oct 2019 00:32:28 +0000 (08:32 +0800)
commit2d1ee64f68cd36284bd180559e91b84a8c10dd3c
treee41e1c3b63410b3621abb1c4e2f0b6ecdd042c25
parentf863cd9c51cdfccc3996bedfd650c147d095eea3
Add bashate verification and fix shell errors

This patch is to add bashate verification. The verification ignores line
too line error. To ensure the test pass, I also fix the shell errors
reported by bashate:
1. delete line ending spaces
2. avoid 'do' in a single line
3. ensure indent is multiple of 4
4. fix function declare
...

Change-Id: Id7112f898a9c56048801455696d32266d9deb19f
Signed-off-by: chengli3 <cheng1.li@intel.com>
13 files changed:
Makefile
cmd/bpa-operator/bpa_operator_launch.sh
deploy/kud-plugin-addons/device-plugins/qat/driver/install_qat.sh
deploy/kud/kud_launch.sh
deploy/metal3/scripts/metal3.sh
env/metal3/01_install_package.sh
env/metal3/02_configure.sh
env/metal3/03_launch_prereq.sh
env/ubuntu/bootloader-env/01_bootloader_package_req.sh
env/ubuntu/bootloader-env/02_clean_bootloader_package_req.sh
tools/cloud-configs.sh
tools/collect.sh
tools/create_usb_bootable.sh