AWK output needs to be sanitized

This commit is contained in:
justin 2026-01-27 15:25:05 -05:00 committed by Michel Roegl-Brunner
parent 16d0ffa19a
commit f4495280cf

View File

@ -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