Added start- end end-scripts

This commit is contained in:
2026-03-03 11:09:56 +01:00
parent c71a881a0a
commit 40a3f7f471
4 changed files with 79 additions and 28 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail
# Source and destination directories
SOURCE_DIR="./assets/copy_stuff/"
DEST_DIR="$HOME"
# Check if source directory exists
if [ ! -d "$SOURCE_DIR" ]; then
echo "Error: Source directory $SOURCE_DIR does not exist."
exit 1
fi
# Use rsync to copy files, overwriting symlinks and existing files
# --delete removes files in DEST_DIR that are not in SOURCE_DIR
# --no-group --no-owner preserves your user ownership
rsync -av --no-group --no-owner "$SOURCE_DIR/" "$DEST_DIR/"
echo "Config files copied from $SOURCE_DIR to $DEST_DIR. Symlinks replaced with editable files."