9 lines
297 B
Bash
Executable file
9 lines
297 B
Bash
Executable file
#!/bin/bash
|
|
cd $(dirname $0)
|
|
cd ..
|
|
tempDir=$(mktemp -d)
|
|
sourceDir="./Website"
|
|
find . -name "*" -and -not -name "." -and -not -name ".env" -and -not -path "$sourceDir/*" -and -not -path $sourceDir -exec rm -rf {} +
|
|
rsync -a --delete $sourceDir $tempDir
|
|
rsync -a --delete $tempDir/ .
|
|
rm -rf $tempDir |