Improve the installation-script
This commit is contained in:
parent
502e116849
commit
e2e9b02bca
|
@ -2,8 +2,19 @@
|
|||
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 {} +
|
||||
sourceDir="."
|
||||
|
||||
find $sourceDir \
|
||||
-name "*" -and \
|
||||
-not \( \
|
||||
\( \
|
||||
-path "Website"
|
||||
\) \
|
||||
-prune \
|
||||
\) -and \
|
||||
-not -name ".env" \
|
||||
-print
|
||||
|
||||
rsync -a --delete $sourceDir $tempDir
|
||||
rsync -a --delete $tempDir/ .
|
||||
rm -rf $tempDir
|
Loading…
Reference in a new issue