fix: Excluded files should be on a separate line for rsync

This commit is contained in:
imtodor 2018-12-03 17:13:46 +02:00
Родитель 844b05fd8d
Коммит 179f1418fc
3 изменённых файлов: 13 добавлений и 2 удалений

11
.exclude Normal file
Просмотреть файл

@ -0,0 +1,11 @@
.git
.vscode
.asset-cache
_site
.github
_buildApi
README.md
.gitignore
.contentignore
exclude_files.txt
exclude_dirs.txt

Просмотреть файл

@ -15,7 +15,7 @@ if [ -z "$2" ] || [ "$2" = "false" ]; then
dirs_to_exclude="`cat ./exclude_dirs.txt`"
robocopy . "$destination" //XD $dirs_to_exclude //XF $files_to_exclude //E
else
rsync -arv --exclude-from=./exclude_files.txt --exclude-from=./exclude_dirs.txt $(pwd)/ "$destination"
rsync -arv --exclude-from=./.exclude $(pwd)/ "$destination"
fi
#shopt -s extglob

Просмотреть файл

@ -1 +1 @@
README.md .gitignore .contentignore exclude_files.txt exclude_dirs.txt
README.md .gitignore .contentignore exclude_files.txt exclude_dirs.txt .exclude