Use the exact formatting suggested in COPYING file. This change is basically a pretext to trigger a new clean build in order to check if Coverity is capable of accepting new builds for analysis finally.
25 lines
575 B
Bash
Executable file
25 lines
575 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Copyright (C) 2019-2020 Patryk Obara <patryk.obara@gmail.com>
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# This script exists only to easily run shellcheck on all files in the repo.
|
|
# You can pass additional parameters to this script itself, e.g.:
|
|
#
|
|
# $ ./verify-bash.sh --format=json
|
|
|
|
list_bash_files () {
|
|
git ls-files \
|
|
| xargs file \
|
|
| grep "Bourne-Again shell script" \
|
|
| cut -d ':' -f 1
|
|
}
|
|
|
|
main () {
|
|
shellcheck --version >&2
|
|
echo "Checking files:" >&2
|
|
list_bash_files >&2
|
|
list_bash_files | xargs -L 1000 shellcheck --color "$@"
|
|
}
|
|
|
|
main "$@"
|