Skip to content

Commit

Permalink
Fix clean.sh for vendoring repos
Browse files Browse the repository at this point in the history
  • Loading branch information
timebertt committed Feb 22, 2021
1 parent f0f5fa1 commit b413a53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ for source_tree in $@; do
grep -lr --include="*.go" "//go:generate packr2" "$(dirname "$source_tree")" | xargs -I {} packr2 clean "{}/.."
done

find ./hack/api-reference/ -type f -name "*.md" -exec rm '{}' \;
if [ -d "$PWD/hack/api-reference" ]; then
find ./hack/api-reference/ -type f -name "*.md" -exec rm '{}' \;
fi

0 comments on commit b413a53

Please sign in to comment.