blob: 5c33aa7d7fe9c477fbe2f5f4e52697eb528dd299 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# POSIX sh
set --
for sh in bin/*.sh ; do
set "$@" "${sh%.sh}"
done
shellcheck -e SC1090 -- "$@" || exit
printf 'sh(1) binscripts linted successfully.\n'
# GNU Bash
if command -v bash >/dev/null 2>&1 ; then
set --
for bin in bin/*.bash ; do
set "$@" "${sh%.sh}"
done
shellcheck -e SC1090 -- "$@" || exit
printf 'bash(1) binscripts linted successfully.\n'
else
printf 'bash(1) not found, skipping lint.\n'
fi
|