Improve the installation-script
This commit is contained in:
parent
502e116849
commit
e2e9b02bca
1 changed files with 13 additions and 2 deletions
|
@ -2,8 +2,19 @@
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
cd ..
|
cd ..
|
||||||
tempDir=$(mktemp -d)
|
tempDir=$(mktemp -d)
|
||||||
sourceDir="./Website"
|
sourceDir="."
|
||||||
find . -name "*" -and -not -name "." -and -not -name ".env" -and -not -path "$sourceDir/*" -and -not -path $sourceDir -exec rm -rf {} +
|
|
||||||
|
find $sourceDir \
|
||||||
|
-name "*" -and \
|
||||||
|
-not \( \
|
||||||
|
\( \
|
||||||
|
-path "Website"
|
||||||
|
\) \
|
||||||
|
-prune \
|
||||||
|
\) -and \
|
||||||
|
-not -name ".env" \
|
||||||
|
-print
|
||||||
|
|
||||||
rsync -a --delete $sourceDir $tempDir
|
rsync -a --delete $sourceDir $tempDir
|
||||||
rsync -a --delete $tempDir/ .
|
rsync -a --delete $tempDir/ .
|
||||||
rm -rf $tempDir
|
rm -rf $tempDir
|
Loading…
Reference in a new issue