build.sh: actually delete dist folder contents

This commit is contained in:
wea_ondara
2023-11-21 17:07:01 +01:00
parent fefd90a3d8
commit 67e4c606ea

View File

@@ -2,7 +2,7 @@
cd "$(dirname "$0")"
mkdir dist
(cd dist && (ls | grep -v "cache" | grep -v "config.json" | xargs echo "rm -rf"))
(cd dist && (ls | grep -v "cache" | grep -v "config.json" | xargs rm -r))
# build
(cd backend && npm i && npm run build) || exit 1