Created
July 25, 2019 10:26
-
-
Save HokieGeek/8b3e84810e0ce8ca4ed1fe8aa0150ac7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# go-scan-monorepo.sh $(find . -type d -maxdepth 1 ! -name '.*') | |
for d in $@; do | |
pushd $d >/dev/null | |
go mod init tmp-$(basename $d) | |
go build . | |
ls | |
rm go.mod go.sum >/dev/null | |
popd >/dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment