Prevent environment-files from being deleted
This commit is contained in:
parent
32e8034c9f
commit
3112b9e1cd
|
@ -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
|
Loading…
Reference in a new issue