dont delete .gitignore

This commit is contained in:
b1ek 2023-03-12 00:15:29 +10:00
parent 8820f17fde
commit 8d13376b4f
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,12 @@
#!/bin/sh
rm -rf dist/*
yarn run build
yarn run build $*
rm -rf ../../public/static/dist
mv dist ../../public/static
for f in ../../public/static/dist/*; do
if [ "$f" != ".gitignore" ]
then
rm -rf "$f"
fi
done
cp -r dist ../../public/static