build-style/go: use glob instead of find

This commit is contained in:
Doan Tran Cong Danh 2019-11-11 13:49:02 +07:00 committed by Juan RP
parent c3c3fb5c3a
commit ad5e48816c
1 changed files with 4 additions and 3 deletions

View File

@ -41,8 +41,9 @@ do_build() {
}
do_install() {
find "${GOPATH}/bin" -type f -executable | while read line
do
vbin "${line}"
for f in ${GOPATH}/bin/* ${GOPATH}/bin/**/*; do
if [ -f "$f" ] && [ -x "$f" ]; then
vbin "$f"
fi
done
}