ignore errors during Find

This commit is contained in:
Matthew Patton 2018-04-09 19:47:41 -04:00
parent d5bf9277ce
commit 554b2b4a5d
1 changed files with 1 additions and 1 deletions

View File

@ -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