Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
go-build.sh: remove parent dir from tar archive (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 authored Aug 6, 2019
1 parent a2862d4 commit 6b38730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/go-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ else
FILE="bin/go.d.plugin-${VERSION}.${GOOS}-${GOARCH}"
CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} go build ${GOFLAGS} -ldflags "${GLDFLAGS}" -o "${FILE}" github.com/netdata/go.d.plugin/cmd/godplugin
ARCHIVE="${FILE}.tar.gz"
tar -cvzf ${ARCHIVE} ${FILE}
tar -C bin -cvzf ${ARCHIVE} ${FILE/bin\//}
rm ${FILE}
done
fi

0 comments on commit 6b38730

Please sign in to comment.