Refactor: Kavita + Updated tools.func (no-same-owner) (#8594)

This commit is contained in:
CanbiZ
2025-10-23 06:46:28 -07:00
committed by GitHub
parent 05fd03d160
commit 1fe00c2493
4 changed files with 36 additions and 33 deletions

View File

@@ -1141,7 +1141,7 @@ function fetch_and_deploy_gh_release() {
rm -rf "${target:?}/"*
fi
tar -xzf "$tmpdir/$filename" -C "$tmpdir" || {
tar --no-same-owner -xzf "$tmpdir/$filename" -C "$tmpdir" || {
msg_error "Failed to extract tarball"
rm -rf "$tmpdir"
return 1
@@ -1263,7 +1263,7 @@ function fetch_and_deploy_gh_release() {
return 1
}
elif [[ "$filename" == *.tar.* || "$filename" == *.tgz ]]; then
tar -xf "$tmpdir/$filename" -C "$unpack_tmp" || {
tar --no-same-owner -xf "$tmpdir/$filename" -C "$unpack_tmp" || {
msg_error "Failed to extract TAR archive"
rm -rf "$tmpdir" "$unpack_tmp"
return 1