mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
AWK output needs to be sanitized
This commit is contained in:
committed by
Michel Roegl-Brunner
parent
16d0ffa19a
commit
f4495280cf
@@ -320,7 +320,8 @@ fetch_and_deploy_gh_release() {
|
||||
# The command is the same for all cases other than tarball/source
|
||||
get_url() {
|
||||
printf '%s' "$json" | jq -r '.assets[].browser_download_url' |
|
||||
awk -v p="$pattern" 'BEGIN{IGNORECASE=1} $0 ~ p {print; exit}'
|
||||
awk -v p="$pattern" 'BEGIN{IGNORECASE=1} $0 ~ p {print; exit}' |
|
||||
tr -d '[:cntrl:]'
|
||||
}
|
||||
|
||||
case "$mode" in
|
||||
|
||||
Reference in New Issue
Block a user