new wallpaperthingie

This commit is contained in:
2026-03-17 17:43:51 +00:00
parent 27da2811dc
commit 7caef18f62
3 changed files with 23 additions and 33 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
# Source and destination directories
SOURCE_DIR="../wallpaperstuff"
DEST_DIR="$HOME/Droidnix/"
# Check if source directory exists
if [ ! -d "$SOURCE_DIR" ]; then
echo "Error: Source directory $SOURCE_DIR does not exist."
exit 1
fi
if [ ! -d "$DEST_DIR" ]; then
mkdir -p $DEST_DIR
fi
# Use rsync to copy files, overwriting symlinks and existing files
# --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."