mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08: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:
@@ -40,7 +40,7 @@ for sourcePath in "$@" ; do
|
||||
fi
|
||||
else
|
||||
# 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
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user