AWK output needs to be sanitized
This commit is contained in:
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
|
# The command is the same for all cases other than tarball/source
|
||||||
get_url() {
|
get_url() {
|
||||||
printf '%s' "$json" | jq -r '.assets[].browser_download_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
|
case "$mode" in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user