From 5aa5d1f46fbaada37347f87bee30cd42b2b0d7d2 Mon Sep 17 00:00:00 2001 From: konsthol Date: Mon, 30 Dec 2024 21:29:05 +0200 Subject: [PATCH] lots of changes after a lot of time --- grpoppro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grpoppro b/grpoppro index d4c3afc..9c68039 100755 --- a/grpoppro +++ b/grpoppro @@ -49,7 +49,8 @@ function curlRequest { -H "$UP_IN_REQ" \ "$@" )" - if [[ $? -ne 0 ]]; then + exit_code="$?" + if [[ "$exit_code" -ne 0 ]]; then message "Error: Failed to execute curl request." exit 1 fi