diff --git a/curl.sh b/curl.sh index 1c66e78..439331f 100755 --- a/curl.sh +++ b/curl.sh @@ -73,4 +73,4 @@ eval $curl_cmd jq . $RESP_BODY_RAW_FILE > $RESP_BODY_JSON_FILE # Print the response code -echo -e -n "\e[0;94mResponse <\e[0m "; awk 'NR==1{print $2, $3; exit}' $RESP_HEADERS_FILE +echo -e -n "\e[0;94mResponse <\e[0m "; head -n 1 $RESP_HEADERS_FILE