Skip to content
Snippets Groups Projects
Commit 1313d6e2 authored by Martin Wölzer's avatar Martin Wölzer
Browse files

.ci/check/shellcheck.sh: introduced file

parent 2830ce8f
No related branches found
No related tags found
1 merge request!24Create release v.0.6.0
#!/bin/bash
if [ -z "${SHELLCHECK_BIN}" ]; then
SHELLCHECK_BIN="shellcheck"
fi
if ! command -v "${SHELLCHECK_BIN}" >/dev/null 2>&1; then
echo "ERROR: Binary '${SHELLCHECK_BIN}' does not exist, please set the environment variable SHELLCHECK_BIN to the correct shellcheck version."
exit 1
fi
check_command="${SHELLCHECK_BIN}"
check_script="$(dirname "${BASH_SOURCE[0]}")/check.sh"
files_regex=".*\.sh$"
if ! "${check_script}" --check-command "${check_command}" --files-regex "${files_regex}" "$@"; then
echo "ERROR: Executing '${check_script}' failed."
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment