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
6ba9a7f76e
commit
e0b327c2b6
+1
-1
@@ -8920,7 +8920,7 @@ function fetch_and_deploy_gl_release() {
|
|||||||
ensure_dependencies jq
|
ensure_dependencies jq
|
||||||
|
|
||||||
local repo_encoded
|
local repo_encoded
|
||||||
repo_encoded=$(python3 -c "import urllib.parse, sys; print(urllib.parse.quote(sys.argv[1], safe=''))" "$repo" 2>/dev/null ||
|
repo_encoded=$(printf '%s' "$repo" | sed 's|/|%2F|g')
|
||||||
echo "$repo" | sed 's|/|%2F|g')
|
echo "$repo" | sed 's|/|%2F|g')
|
||||||
|
|
||||||
local api_base="https://gitlab.com/api/v4/projects/$repo_encoded/releases"
|
local api_base="https://gitlab.com/api/v4/projects/$repo_encoded/releases"
|
||||||
|
|||||||
Reference in New Issue
Block a user