Skip to content

Commit 0810ab1

Browse files
committed
fix ./... usage in cmd-repo-pkg
1 parent 1c80b3a commit 0810ab1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/cmd-repo-pkg.bash

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44

55
prepare_repo_hook_cmd "$@"
66

7+
if [ "${use_dot_dot_dot:-}" -eq 1 ]; then
8+
OPTIONS+=('./...')
9+
fi
710
export GO111MODULE=off
811
if [ "${error_on_output:-}" -eq 1 ]; then
9-
output=$("${cmd[@]}" "${OPTIONS[@]}" ./... 2>&1)
12+
output=$("${cmd[@]}" "${OPTIONS[@]}" 2>&1)
1013
if [ -n "${output}" ]; then
1114
printf "%s\n" "${output}"
1215
exit 1
1316
fi
1417
else
15-
"${cmd[@]}" "${OPTIONS[@]}" ./...
18+
"${cmd[@]}" "${OPTIONS[@]}"
1619
fi

0 commit comments

Comments
 (0)