From ad5e48816cc437b7d7561e38803a5e4ee73de52a Mon Sep 17 00:00:00 2001 From: Doan Tran Cong Danh Date: Mon, 11 Nov 2019 13:49:02 +0700 Subject: [PATCH] build-style/go: use glob instead of find --- common/build-style/go.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/build-style/go.sh b/common/build-style/go.sh index 97412843b20..c9f476b95c7 100644 --- a/common/build-style/go.sh +++ b/common/build-style/go.sh @@ -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 }