From 7500458e853e17bb1a03f0142d24069ba02ad0f5 Mon Sep 17 00:00:00 2001 From: x71c9 <108585118+x71c9@users.noreply.github.com> Date: Wed, 1 Oct 2025 12:02:13 +0200 Subject: [PATCH] files: improve collision error message formatting for readability Render each bullet as a single line at runtime while keeping ~80-column source formatting. Prevents truncation of the colliding path in service logs, reducing the need to inspect journal output. --- modules/files/check-link-targets.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/files/check-link-targets.sh b/modules/files/check-link-targets.sh index 46457f0cc..ae4f091ff 100644 --- a/modules/files/check-link-targets.sh +++ b/modules/files/check-link-targets.sh @@ -48,11 +48,11 @@ done if [[ ${#collisionErrors[@]} -gt 0 ]] ; then errorEcho "Please do one of the following: - Move or remove the files below and try again. -- In standalone mode, use 'home-manager switch -b backup' to back up - files automatically. -- When used as a NixOS or nix-darwin module, set - 'home-manager.backupFileExtension' - to, for example, 'backup' and rebuild." +- In standalone mode, use 'home-manager switch -b backup' to back up"\ +" files automatically. +- When used as a NixOS or nix-darwin module, set"\ +" 'home-manager.backupFileExtension'"\ +" to, for example, 'backup' and rebuild." for error in "${collisionErrors[@]}" ; do errorEcho "$error" done