From 6e5d84fe6850a91ca551c777fda678cdb3802642 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Thu, 14 Nov 2019 17:36:51 +0700 Subject: [PATCH] build-release.sh: cleanup dist before making dist --- build-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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