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")"