Skip to content

Commit 0945f7b

Browse files
authored
Merge pull request #249 from tegonal/improve/analyse-other-pull-hook-files
analyse all *.sh files which start with pull-hook
2 parents 4a5a479 + 19755e7 commit 0945f7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/qa/run-shellcheck.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ function runShellcheckPullHooks() {
126126
fi
127127
local -r gt_dir=$1
128128

129-
local -r gt_remote_dir="$gt_dir/remotes/"
130-
logInfo "analysing $gt_remote_dir/**/pull-hook.sh"
129+
local -r gt_remote_dir="$gt_dir/remotes"
130+
logInfo "analysing $gt_remote_dir/**/pull-hook*.sh"
131131

132132
# shellcheck disable=SC2034 # is passed by name to runShellcheck
133-
local -ra dirs2=("$gt_remote_dir")
133+
local -ra dirs=("$gt_remote_dir")
134134
local sourcePath="$dir_of_tegonal_scripts"
135-
runShellcheck dirs2 "$sourcePath" -name "pull-hook.sh"
135+
runShellcheck dirs "$sourcePath" -name "pull-hook*.sh"
136136
}

0 commit comments

Comments
 (0)