From 0bdf5f219bb770c5c08adcdda3526efabafa0cd2 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 9 Jan 2022 01:25:04 -0600 Subject: [PATCH] Correct perms for rsync --- install.bash | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.bash b/install.bash index 991c15de..224540d6 100755 --- a/install.bash +++ b/install.bash @@ -355,9 +355,8 @@ source_installer() { chmod u+x nvim.appimage ./nvim.appimage --appimage-extract if sudo -v >/dev/null 2>&1; then - cd "squashfs-root" - sudo rsync -a "usr" "/usr" - cd .. + sudo chown -R "root:root" "squashfs-root" + sudo rsync -a "./squashfs-root/usr" "/usr" rm -rf "squashfs-root" else log "warning" "Unable to add neovim to path from $(important "${squashfs-root}"), did not have sudo permissions"