From 233151bdd444bbedbd0328503fc4851d894023bc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 12 Mar 2023 17:22:39 +0100 Subject: check_api.sh: refactoring --- test/check_api.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/check_api.sh b/test/check_api.sh index 4dcc199..1eb0c45 100755 --- a/test/check_api.sh +++ b/test/check_api.sh @@ -3,8 +3,10 @@ set -o errexit -o nounset -o pipefail shopt -s inherit_errexit lastpipe +readonly base_url='http://192.168.177.1:1234/' + run_curl() { - curl -sS -D - --connect-timeout 3 http://192.168.177.1:1234/ "$@" + curl -sS -D - --connect-timeout 3 "$@" -- "$base_url" } run_curl_api() { @@ -30,4 +32,4 @@ main() { check_api } -main "$@" +main -- cgit v1.2.3