From cc2c652cc2ddb176afacbcaf1d32a5522c6f0ddb Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 9 Sep 2026 19:45:44 -0700 Subject: [PATCH] fix(deploy): override packages target home-relative paths zz- packages nest base-package dirs internally (zz-blankpad/niri/.config/...); stripping only the package prefix yielded targets like $HOME/niri/.config/... . Strip the nested package segment for zz-* packages so overrides land on the same home-relative target as the base copy they override. --- scripts/deploy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 1305b90..aa12ce7 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -98,7 +98,10 @@ for pkg in "${PKGS[@]}"; do continue fi while IFS= read -r -d '' f; do - deploy_file "$f" "${f#"$pkg"/}" + rel="${f#"$pkg"/}" + # override packages nest base-package dirs internally: strip that segment for targets + if [ "${pkgname#zz-}" != "$pkgname" ]; then case "$rel" in */*) [ -d "$PKGS_DIR/${rel%%/*}" ] && rel="${rel#*/}";; esac; fi + deploy_file "$f" "$rel" done < <(find "$pkg" -type f ! -name 'dump.txt' -print0) done