refactor(build): clear tmp build directory

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2023-10-26 18:02:43 +02:00
parent 14694876dd
commit de797f614b

View file

@ -59,6 +59,10 @@ function build_api(){
[[ $1 == "ee" ]] && {
destination="_backend_ee"
}
[[ -d ../${destination} ]] && {
echo "Removing previous build cache"
rm -rf ../${destination}
}
cp -R ../backend ../${destination}
cd ../${destination}
# Copy enterprise code