Files
kustomize/hack/doGoMod.sh
2019-10-27 05:05:23 -07:00

11 lines
197 B
Bash
Executable File

# Usage: From repo root:
# ./hack/doGoMod.sh tidy
# ./hack/doGoMod.sh verify
operation=$1
for f in $(find ./ -name 'go.mod'); do
echo $f
d=$(dirname "$f")
(cd $d; go mod $operation)
done