From 115f9388101d5e17c42479cd192aad7f779833b4 Mon Sep 17 00:00:00 2001 From: Lars Erik Wik Date: Wed, 8 Apr 2026 21:07:32 +0200 Subject: [PATCH] Fixed dotfile mv in pkg-build-deb picking up . and .. The glob pattern `.*` matches `.` and `..`, causing spurious warnings during tarball extraction. The `|| true` prevented the script from failing, but the warnings are noisy and confusing. Replaced with a loop that skips these special directory entries. Signed-off-by: Lars Erik Wik --- deps-packaging/pkg-build-deb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/deps-packaging/pkg-build-deb b/deps-packaging/pkg-build-deb index 2bc7b422a..a7ab0cc72 100755 --- a/deps-packaging/pkg-build-deb +++ b/deps-packaging/pkg-build-deb @@ -64,8 +64,13 @@ echo "$SRCFILES" | while read srcfile opts; do mkdir -p "$TD" $UNCOMPRESS $srcfile | tar -C $TD -xf - mv $TD/*/* $PKGDIR - # Also move dot files, but don't fail if there are none - mv $TD/*/.* $PKGDIR || true + # Also move dot files (.gitignore, etc.), skipping . and .. + for _dotfile in $TD/*/.*; do + case "${_dotfile##*/}" in + .|..) continue ;; + *) mv "$_dotfile" "$PKGDIR" ;; + esac + done rm -r "$TD" fi done