test(shellcheck): tell shellcheck to use bash when checking

dotbare.plugin.bash
pull/7/head
kevin zhuang 4 years ago
parent 868897ec2b
commit f3309cb568

@ -1,4 +1,3 @@
# shellcheck shell=bash
mydir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
[[ :$PATH: != *:"${mydir}":* ]] && export PATH="$PATH:${mydir}"

@ -12,7 +12,6 @@ while IFS= read -r -d $'\0' line; do
scripts+=("$line")
done < <(
find \
dotbare.plugin.bash \
dotbare \
helper/* \
scripts/* \
@ -22,5 +21,6 @@ done < <(
)
shellcheck -e SC1090 "${scripts[@]}"
shellcheck -e SC1090 --shell=bash "dotbare.plugin.bash"
exit $?

Loading…
Cancel
Save