From 554b2b4a5dc88296032179ff795a0bd5872bf63b Mon Sep 17 00:00:00 2001 From: Matthew Patton Date: Mon, 9 Apr 2018 19:47:41 -0400 Subject: [PATCH] ignore errors during Find --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 19ed1ad09..4f55b9893 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -94,7 +94,7 @@ IFS=$OLDIFS # Copy our OS/Arch to the bin/ directory echo "==> Copying binaries for this platform..." DEV_PLATFORM="./pkg/$(go env GOOS)_$(go env GOARCH)" -for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do +for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f 2>/dev/null); do cp -v ${F} bin/ cp -v ${F} ${MAIN_GOPATH}/bin/ done