mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-03 23:45:59 +00:00
Update misc/tools.func
Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
28c936298d
commit
d671227310
+1
-2
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user