Prevent environment-files from being deleted

This commit is contained in:
Manuel Thalmann 2019-04-05 10:40:42 +02:00
parent 32e8034c9f
commit 3112b9e1cd

View file

@ -3,7 +3,7 @@ cd $(dirname $0)
cd ..
tempDir=$(mktemp -d)
sourceDir="./Website"
find . -name "*" -and -not -name "." -and -not -path "$sourceDir/*" -and -not -path $sourceDir -exec rm -rf {} +
find . -name "*" -and -not -name "." -and -not -name ".env" -and -not -path "$sourceDir/*" -and -not -path $sourceDir -exec rm -rf {} +
rsync -a --delete ./src/ $tempDir
rsync -a --delete $tempDir/ .
rm -rf $tempDir