diff --git a/build-support/functions/20-build.sh b/build-support/functions/20-build.sh index 6205db50ed..7e5d198a7a 100644 --- a/build-support/functions/20-build.sh +++ b/build-support/functions/20-build.sh @@ -202,7 +202,7 @@ function build_consul_post { pushd "${sdir}" > /dev/null # recreate the pkg dir - rm -r pkg/bin/* 2> /dev/null + rm -r pkg/bin/*${2} 2> /dev/null mkdir -p pkg/bin 2> /dev/null # move all files in pkg.new into pkg @@ -379,4 +379,4 @@ function build_consul_local { return 1 fi return 0 -} \ No newline at end of file +}