From d6ae7ba6df2aa759b75624a7209105621f22ae47 Mon Sep 17 00:00:00 2001 From: Dipesh <92223600+Dipesh3345@users.noreply.github.com> Date: Sun, 2 Apr 2023 01:50:26 +0545 Subject: [PATCH] fixed permission denied issue After install packages using sudo through make ,there are files created by make on root privilege so while removing the file after installation so it shows permission denied issue and requires sudo privilege --- install_neovim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_neovim.sh b/install_neovim.sh index dfb30bb2..f334bcaf 100755 --- a/install_neovim.sh +++ b/install_neovim.sh @@ -72,4 +72,4 @@ make CMAKE_BUILD_TYPE="$BUILD_TYPE" sudo make install cd "$CURRENT_DIR" || terminate_script "Error: not able to change directory to \"$CURRENT_DIR\"" -rm -rf "$NEOVIM_DIR" +sudo rm -rf "$NEOVIM_DIR"