Update tools.func

This commit is contained in:
CanbiZ 2025-06-17 08:23:11 +02:00
parent 0e46d83110
commit 7221b39759

View File

@ -889,7 +889,7 @@ function fetch_and_deploy_gh_release() {
}
mkdir -p "$target"
tar -xzf "$tmpdir/$filename" -C "$target"
[[ $filename == *.zip ]] && unzip "$tmpdir/$filename" -d "$target" || [[ $filename == *.tar.gz ]] && tar -xzf "$tmpdir/$filename" -C "$target"
elif [[ "$mode" == "singlefile" ]]; then
local pattern="$6"