File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ matrix:
2727 language : shell
2828 script :
2929 - shellcheck --version
30- - find . ! -path "./build/*" ! -path "./tools/*"
31- -type f \( -name "*.sh" \)
32- -exec shellcheck {} \;
30+ - find . -type f -name "*.sh" -exec shellcheck {} \;
3331
3432 - name : " cmake-format check"
3533 stage : check
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ sphinx-build -M html source build
1919
2020# create or use orphaned gh-pages branch
2121branch_name=gh-pages
22- if [ $( git branch --list " $branch_name " ) ]; then
22+ if [ " $( git branch --list " $branch_name " ) " ]; then
2323 git stash
2424 git checkout $branch_name
2525 git pull origin $branch_name
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+ IFS=$' \n\t '
5+
6+ # ##############################################################################
7+ # Run shellcheck on all shell scripts (for usage in CIs)
8+ # If you develop for this project, please use `make shellcheck`.
9+ # ##############################################################################
10+
11+ cd " $( cd " $( dirname " $0 " ) " ; pwd -P ) /.."
12+
13+ echo " Run shellcheck on all source files"
14+ find . ! -path " ./build/*" -type f -name " *.sh" -exec shellcheck -e SC2010 -e SC2016 {} \+
You can’t perform that action at this time.
0 commit comments