Only remove builds with the same suffix

pull/4245/head
Matt Keeler 7 years ago
parent ebe6ca167f
commit 4daf669136

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

Loading…
Cancel
Save