This commit is contained in:
[yuri]
2025-12-11 17:56:23 +01:00
parent ba643c3042
commit 2503de59a4

View File

@@ -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.