Update misc/tools.func

Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com>
This commit is contained in:
CanbiZ (MickLesk)
2026-04-30 20:20:50 +02:00
committed by GitHub
parent 28c936298d
commit d671227310
+1 -2
View File
@@ -8675,8 +8675,7 @@ get_latest_gitlab_release() {
local strip_v="${2:-true}"
local repo_encoded
repo_encoded=$(python3 -c "import urllib.parse, sys; print(urllib.parse.quote(sys.argv[1], safe=''))" "$repo" 2>/dev/null ||
echo "$repo" | sed 's|/|%2F|g')
repo_encoded=$(printf '%s' "$repo" | sed 's|/|%2F|g')
local header=()
[[ -n "${GITLAB_TOKEN:-}" ]] && header=(-H "PRIVATE-TOKEN: $GITLAB_TOKEN")