From 435029a5695efaa12cc4dad93a143218940c1be4 Mon Sep 17 00:00:00 2001 From: Theo Brigitte Date: Fri, 22 Nov 2024 11:08:45 +0100 Subject: [PATCH] Fix order script to be compatible with curl below 8.3.0 --- bin/order.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/order.sh b/bin/order.sh index 6d35cdf..1df2926 100755 --- a/bin/order.sh +++ b/bin/order.sh @@ -74,8 +74,8 @@ request() { --header "Accept: application/json"\ --header "Content-Type: application/json" \ --data "${data}" \ - -w '\n%output{'$HTTP_CODE_FILE'}%{http_code}' \ - "$@" + -w '%{stderr}%{http_code}' \ + "$@" 2>$HTTP_CODE_FILE set +x http_code=$(cat "$HTTP_CODE_FILE")