David Blume commited on 2018-04-30 20:57:32
Showing 1 changed files, with 3 additions and 1 deletions.
... | ... |
@@ -66,7 +66,9 @@ if ! diff -qr $HOME/.vim .vim > /dev/null ; then |
66 | 66 |
cp -r .vim $HOME |
67 | 67 |
if [ -d $backup_dir/.vim ]; then |
68 | 68 |
# Copy back proprietary file types (ex. ftdetect/my.vim), if any. |
69 |
- cp -r -n $backup_dir/.vim $HOME || true |
|
69 |
+ # Print only the files that got moved back into ~/.vim |
|
70 |
+ cp -rnv $backup_dir/.vim $HOME | grep " -> " | cut -d " " -f3 | \ |
|
71 |
+ xargs -I{} sh -c "test -f {} && echo Restored {}" || true |
|
70 | 72 |
fi |
71 | 73 |
fi |
72 | 74 |
if [[ -d $backup_dir/.vim || $DRY_RUN -ne 0 ]]; then |
73 | 75 |