Prevent environment-files from being deleted
This commit is contained in:
parent
32e8034c9f
commit
3112b9e1cd
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ cd $(dirname $0)
|
||||||
cd ..
|
cd ..
|
||||||
tempDir=$(mktemp -d)
|
tempDir=$(mktemp -d)
|
||||||
sourceDir="./Website"
|
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 ./src/ $tempDir
|
||||||
rsync -a --delete $tempDir/ .
|
rsync -a --delete $tempDir/ .
|
||||||
rm -rf $tempDir
|
rm -rf $tempDir
|
Loading…
Reference in a new issue