From 7a70f9a1e16eb53c11b084c80a0ffb329b848e51 Mon Sep 17 00:00:00 2001 From: Johannes Treske Date: Tue, 5 May 2026 16:15:57 +0200 Subject: [PATCH] Added support for symlink files --- lib/utils.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/utils.sh b/lib/utils.sh index 470ce29..1953234 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -52,6 +52,11 @@ apply_setting() { return 1 fi + # Resolve symlink to real path if necessary + if [[ -L "$file" ]]; then + file=$(readlink -f "$file") + fi + # Ensure the target directory exists just in case (for overwrites) if [[ $DRY_RUN -eq 0 ]]; then mkdir -p "$(dirname "$file")"