From e5b63822329aa8b4d9c3f1f51434c9eca06e27a4 Mon Sep 17 00:00:00 2001 From: Mresyzz <1583601356+Mresyzz@users.noreply.github.com> Date: Fri, 2 Oct 2026 16:05:48 +0800 Subject: [PATCH] fix: extract release archives without preserving owner --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 353185d..a33c46c 100755 --- a/install.sh +++ b/install.sh @@ -278,7 +278,9 @@ main() { # ── Extract ── info "Extracting…" if [[ "$ext" == "tar.gz" ]]; then - tar -xzf "${tmpdir}/${archive_name}" -C "$tmpdir" + # Release archives may contain build-time ownership metadata. Ignore it + # so unprivileged installs work across containers and Linux distros. + tar --no-same-owner -xzf "${tmpdir}/${archive_name}" -C "$tmpdir" else # Windows zip — requires unzip. need_cmd unzip