Remove old binary before copying new one to GOPATH/bin (#13966)

This commit is contained in:
Robert
2022-02-09 07:32:10 -06:00
committed by GitHub
parent 81b214230c
commit 3dc8ef76b6

View File

@@ -70,6 +70,7 @@ IFS=$OLDIFS
DEV_PLATFORM=${DEV_PLATFORM:-"./pkg/$(${GO_CMD} env GOOS)_$(${GO_CMD} env GOARCH)"} DEV_PLATFORM=${DEV_PLATFORM:-"./pkg/$(${GO_CMD} env GOOS)_$(${GO_CMD} 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); do
cp ${F} bin/ cp ${F} bin/
rm -f ${MAIN_GOPATH}/bin/vault
cp ${F} ${MAIN_GOPATH}/bin/ cp ${F} ${MAIN_GOPATH}/bin/
done done