Only remove builds with the same suffix

This commit is contained in:
Matt Keeler 2018-06-18 09:57:12 -04:00
parent 588cfbb359
commit e7b0a729ea
1 changed files with 2 additions and 2 deletions

View File

@ -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