diff --git a/build-release.sh b/build-release.sh index 876e5740cfdf..7a63611c8b43 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