From 04c35c6452f525371b4caf64a9ff31995d016d9e Mon Sep 17 00:00:00 2001 From: ale5000 <15793015+ale5000-git@users.noreply.github.com> Date: Tue, 23 Jul 2024 00:09:15 +0200 Subject: [PATCH] Minor change --- includes/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/common.sh b/includes/common.sh index 9488dffc..719f0007 100644 --- a/includes/common.sh +++ b/includes/common.sh @@ -383,7 +383,7 @@ do_AJAX_post_request_and_output_response_to_stdout() "${WGET_CMD:?}" -q -O '-' "${@}" --post-data "${_post_data?}" -- "${_url:?}" } -# 1 => JSON response; 2 => Field to get +# 1 => JSON response; 2 => Field to retrieve parse_JSON_response() { printf '%s\n' "${1:?}" | grep -o -m 1 -E -e "\"${2:?}\""'\s*:\s*"[^"]+' | cut -d ':' -f '2-' -s | grep -o -e '".*' | cut -c '2-'