Skip to content

Commit

Permalink
fix ./... usage in cmd-repo-pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
TekWizely committed Aug 9, 2021
1 parent 1c80b3a commit 0810ab1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/cmd-repo-pkg.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@

prepare_repo_hook_cmd "$@"

if [ "${use_dot_dot_dot:-}" -eq 1 ]; then
OPTIONS+=('./...')
fi
export GO111MODULE=off
if [ "${error_on_output:-}" -eq 1 ]; then
output=$("${cmd[@]}" "${OPTIONS[@]}" ./... 2>&1)
output=$("${cmd[@]}" "${OPTIONS[@]}" 2>&1)
if [ -n "${output}" ]; then
printf "%s\n" "${output}"
exit 1
fi
else
"${cmd[@]}" "${OPTIONS[@]}" ./...
"${cmd[@]}" "${OPTIONS[@]}"
fi

0 comments on commit 0810ab1

Please sign in to comment.