1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

files: show better error when file would be clobbered (#7348)

Before:

> Existing file '' would be clobbered by backing up '/home/winter/.config/fish/config.fish'

After:

> Existing file '/home/winter/.config/fish/config.fish' would be clobbered
This commit is contained in:
Winter 2025-06-30 22:16:25 -04:00 committed by GitHub
parent 4074121796
commit 96354906f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ for sourcePath in "$@" ; do
fi fi
else else
# Fail if nothing else works # Fail if nothing else works
collisionErrors+=("Existing file '$backup' would be clobbered by backing up '$targetPath'") collisionErrors+=("Existing file '$targetPath' would be clobbered")
fi fi
fi fi
done done