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.