build.sh: fix deleting in cache dir (don't delete mangadex and mangaupdates dirs)

This commit is contained in:
wea_ondara
2023-11-25 18:46:18 +01:00
parent 33de453301
commit 91dec7a419

View File

@@ -6,7 +6,7 @@ mkdir dist/cache
# clean # clean
(cd dist && (ls | grep -v "cache" | grep -v "config.json" | xargs rm -r)) (cd dist && (ls | grep -v "cache" | grep -v "config.json" | xargs rm -r))
(cd dist/cache && (ls | grep -v ".json" | xargs rm -r)) (cd dist/cache && (ls | grep -v ".json" | grep -v "mangadex" | grep -v "mangaupdates" | xargs rm -r))
# build # build
(cd backend && npm i && npm run build) || exit 1 (cd backend && npm i && npm run build) || exit 1