summaryrefslogtreecommitdiff
path: root/utils/installer/install.sh
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-12-11 20:08:25 +0100
committerGitHub <[email protected]>2021-12-11 20:08:25 +0100
commitf7d883b6b92d66c222fd0d4e3d398c1f4fcea882 (patch)
treeef333f791725a3683a836b6a03fb21a69ad95da7 /utils/installer/install.sh
parent872061e179a9e887a0bf8da5d0f2b2f57df1fc66 (diff)
feat(installer): nicer rsync output (#2067)
Diffstat (limited to 'utils/installer/install.sh')
-rwxr-xr-xutils/installer/install.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/utils/installer/install.sh b/utils/installer/install.sh
index 66205b10..d420baed 100755
--- a/utils/installer/install.sh
+++ b/utils/installer/install.sh
@@ -106,14 +106,13 @@ function main() {
[ "$answer" != "${answer#[Yy]}" ] && install_rust_deps
fi
- msg "Backing up old LunarVim configuration"
backup_old_config
verify_lvim_dirs
if [ "$ARGS_LOCAL" -eq 1 ]; then
link_local_lvim
- elif [ -e "$LUNARVIM_BASE_DIR/init.lua" ]; then
+ elif [ -d "$LUNARVIM_BASE_DIR" ]; then
validate_lunarvim_files
else
clone_lvim
@@ -287,9 +286,9 @@ function backup_old_config() {
fi
mkdir -p "$dir.bak"
touch "$dir/ignore"
+ msg "Backing up old $dir to $dir.bak"
if command -v rsync &>/dev/null; then
- rsync --archive -hh --partial --progress --cvs-exclude \
- --modify-window=1 "$dir"/ "$dir.bak"
+ rsync --archive -hh --stats --partial --cvs-exclude "$dir"/ "$dir.bak"
else
OS="$(uname -s)"
case "$OS" in
@@ -305,7 +304,7 @@ function backup_old_config() {
esac
fi
done
- echo "Backup operation complete"
+ msg "Backup operation complete"
}
function clone_lvim() {