From 2503de59a48cbf2a282622575b5b3912777db45b Mon Sep 17 00:00:00 2001 From: "[yuri]" <[yuri.kuit@gmail.com]> Date: Thu, 11 Dec 2025 17:56:23 +0100 Subject: [PATCH] bugfixes --- install_dotfiles.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/install_dotfiles.sh b/install_dotfiles.sh index 0963012..8e0c094 100755 --- a/install_dotfiles.sh +++ b/install_dotfiles.sh @@ -88,13 +88,7 @@ fi say_cyan "Source Directory: $DOTFILES_SRC_DIR" say_cyan "Target Directory: $TARGET_DIR" -# 2. Check for root/sudo privileges (required for writing to /etc/skel) -if [ "$(id -u)" -ne 0 ]; then - say_red "ERROR: This script must be run with root/sudo privileges to write to $TARGET_DIR." - exit 1 -fi - -# 3. Perform the copy operation +# 2. Perform the copy operation # The 'cp -r' command copies the *contents* of the source directory (DOTFILES_SRC_DIR) # to the target directory (TARGET_DIR), overwriting existing files silently. # The 'cp -rT' flag is often safer to ensure the contents are copied, not the directory itself.