Rename variable rsync_cmd to _rsync_cmd

This commit is contained in:
Sorin Ionescu 2012-06-13 21:44:27 -04:00
parent 425aec21ee
commit c1bb7e5b27

View File

@ -6,18 +6,18 @@
# #
# Aliases # Aliases
rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system' _rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system'
# Mac OS X and HFS+ Enhancements # Mac OS X and HFS+ Enhancements
# http://www.bombich.com/rsync.html # http://www.bombich.com/rsync.html
if [[ "$OSTYPE" == darwin* ]] && grep -q 'file-flags' <(rsync --help 2>&1); then if [[ "$OSTYPE" == darwin* ]] && grep -q 'file-flags' <(rsync --help 2>&1); then
rsync_cmd="${rsync_cmd} --crtimes --acls --xattrs --fileflags --protect-decmpfs --force-change" _rsync_cmd="${_rsync_cmd} --crtimes --acls --xattrs --fileflags --protect-decmpfs --force-change"
fi fi
alias rsync-copy="${rsync_cmd}" alias rsync-copy="${_rsync_cmd}"
alias rsync-move="${rsync_cmd} --remove-source-files" alias rsync-move="${_rsync_cmd} --remove-source-files"
alias rsync-update="${rsync_cmd} --update" alias rsync-update="${_rsync_cmd} --update"
alias rsync-synchronize="${rsync_cmd} --update --delete" alias rsync-synchronize="${_rsync_cmd} --update --delete"
unset rsync_cmd unset _rsync_cmd