Shellcheck is failing on the execution given that it's missing
the -x argument. This change fixes that problem adding the argument.
Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: Idc1795b604f4b88e5e4468b8fd26b961c08455bf
set -o pipefail
set -o xtrace
set -o pipefail
set -o xtrace
+echo "Requirements validation"
# shellcheck disable=SC1091
source /etc/os-release || source /usr/lib/os-release
# shellcheck disable=SC1091
source /etc/os-release || source /usr/lib/os-release
fi
if [ -n "$pkgs" ]; then
fi
if [ -n "$pkgs" ]; then
+ echo "Requirements installation"
case ${ID,,} in
*suse*)
sudo zypper install --gpg-auto-import-keys refresh
case ${ID,,} in
*suse*)
sudo zypper install --gpg-auto-import-keys refresh
+echo "Server tools information:"
+python -V
+tox --version
+shellcheck -V
+
+echo "Linting process execution"
-bash -c 'shopt -s globstar; shellcheck **/*.sh'
+bash -c 'shopt -s globstar; shellcheck -x **/*.sh'