Skip to content

Commit

Permalink
test(shellcheck): tell shellcheck to use bash when checking
Browse files Browse the repository at this point in the history
dotbare.plugin.bash
  • Loading branch information
kazhala committed Jun 6, 2020
1 parent 868897e commit f3309cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion dotbare.plugin.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# shellcheck shell=bash
mydir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
[[ :$PATH: != *:"${mydir}":* ]] && export PATH="$PATH:${mydir}"

Expand Down
2 changes: 1 addition & 1 deletion tests/shellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ while IFS= read -r -d $'\0' line; do
scripts+=("$line")
done < <(
find \
dotbare.plugin.bash \
dotbare \
helper/* \
scripts/* \
Expand All @@ -22,5 +21,6 @@ done < <(
)

shellcheck -e SC1090 "${scripts[@]}"
shellcheck -e SC1090 --shell=bash "dotbare.plugin.bash"

exit $?

0 comments on commit f3309cb

Please sign in to comment.