bugfixes
This commit is contained in:
@@ -88,13 +88,7 @@ fi
|
|||||||
say_cyan "Source Directory: $DOTFILES_SRC_DIR"
|
say_cyan "Source Directory: $DOTFILES_SRC_DIR"
|
||||||
say_cyan "Target Directory: $TARGET_DIR"
|
say_cyan "Target Directory: $TARGET_DIR"
|
||||||
|
|
||||||
# 2. Check for root/sudo privileges (required for writing to /etc/skel)
|
# 2. Perform the copy operation
|
||||||
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
|
|
||||||
# The 'cp -r' command copies the *contents* of the source directory (DOTFILES_SRC_DIR)
|
# The 'cp -r' command copies the *contents* of the source directory (DOTFILES_SRC_DIR)
|
||||||
# to the target directory (TARGET_DIR), overwriting existing files silently.
|
# 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.
|
# The 'cp -rT' flag is often safer to ensure the contents are copied, not the directory itself.
|
||||||
|
|||||||
Reference in New Issue
Block a user