nuth.ch/scripts/install.sh

9 lines
270 B
Bash
Raw Normal View History

2019-03-25 13:25:09 +00:00
#!/bin/bash
cd $(dirname $0)
cd ..
tempDir=$(mktemp -d)
2019-03-27 07:55:08 +00:00
sourceDir="./Website"
find . -name "*" -and -not -name "." -and -not -path "$sourceDir/*" -and -not -path $sourceDir -exec rm -rf {} +
2019-03-25 13:25:09 +00:00
rsync -a --delete ./src/ $tempDir
rsync -a --delete $tempDir/ .
rm -rf $tempDir