diff --git a/build-release.sh b/build-release.sh index ee19ccfb0f30..913d688a1e6f 100755 --- a/build-release.sh +++ b/build-release.sh @@ -37,7 +37,7 @@ build_dist() { echo "- Building platform: ${ALIAS} (" "${BUILD_ENV[@]}" "go build" "${BUILD_ARGS[@]}" ")" # Clean out any old remnants of failed builds. - rm -rf "dist/$DIR" + rm -rf "dist" mkdir -p "dist/$DIR" # Subshell to not mess with the current env vars or CWD