diff options
| author | Lee Marlow <[email protected]> | 2021-12-15 00:30:38 -0700 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-15 08:30:38 +0100 | 
| commit | bccbcff3ab081ffdeb7c615cc42bfd84ae680dcb (patch) | |
| tree | 74759ef767986f8ffa10b2f3e469bc591cb3ce26 /utils | |
| parent | e809e8dca629c37b5ff069801a84c5a9c3c346ef (diff) | |
fix(installer): backup linked files with rsync (#2081)
This allows backup to succeed for people who use symlinks for managing dotfiles.
Currently errors with the following:
```
rsync error: some files/attrs were not transferred (see previous errors) (code 23) \
at main.c(1350) [sender=3.2.3]
````
Diffstat (limited to 'utils')
| -rwxr-xr-x | utils/installer/install.sh | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/utils/installer/install.sh b/utils/installer/install.sh index d420baed..61519998 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -288,7 +288,7 @@ function backup_old_config() {      touch "$dir/ignore"      msg "Backing up old $dir to $dir.bak"      if command -v rsync &>/dev/null; then -      rsync --archive -hh --stats --partial --cvs-exclude "$dir"/ "$dir.bak" +      rsync --archive -hh --stats --partial --copy-links --cvs-exclude "$dir"/ "$dir.bak"      else        OS="$(uname -s)"        case "$OS" in | 
