mirror of
https://github.com/celesrenata/end-4-flakes.git
synced 2026-06-07 19:19:26 -05:00
Add matugen directory to backup handling
- Add matugen to writable-mode backup script directory list - Add matugen conflict handling to Home Manager activation script - Handle both symlinked and regular matugen directories - Prevents activation failures due to existing matugen configs This resolves the 'mkdir: cannot create directory' and 'ln: failed to create symbolic link' errors that occur when ~/.config/matugen already exists during Home Manager activation.
This commit is contained in:
@@ -58,7 +58,7 @@ let
|
||||
mkdir -p "$BACKUP_DIR"
|
||||
|
||||
# Backup specific directories that will be overwritten
|
||||
for dir in quickshell hypr fish foot kitty fuzzel wlogout; do
|
||||
for dir in quickshell hypr fish foot kitty fuzzel wlogout matugen; do
|
||||
if [[ -d "$CONFIG_DIR/$dir" ]]; then
|
||||
info " Backing up $dir"
|
||||
cp -r "$CONFIG_DIR/$dir" "$BACKUP_DIR/" 2>/dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user