fix script
This commit is contained in:
@@ -32,7 +32,7 @@ data:
|
|||||||
HTTP_STATUS=$(curl -i -X GET --silent --write-out '%{http_code}' --output response_body_test.json -b cookie -c cookie "${API_ENDPOINT}/app/version");
|
HTTP_STATUS=$(curl -i -X GET --silent --write-out '%{http_code}' --output response_body_test.json -b cookie -c cookie "${API_ENDPOINT}/app/version");
|
||||||
echo ">> HTTP Status Code: $HTTP_STATUS"
|
echo ">> HTTP Status Code: $HTTP_STATUS"
|
||||||
|
|
||||||
VERSION=$(tail -n 1 ./test/response_body_test.json)
|
VERSION=$(tail -n 1 response_body_test.json)
|
||||||
|
|
||||||
if [ "$HTTP_STATUS" == "200" ]; then
|
if [ "$HTTP_STATUS" == "200" ]; then
|
||||||
echo ">> Access confirmed, qBittorrent version: ${VERSION}"
|
echo ">> Access confirmed, qBittorrent version: ${VERSION}"
|
||||||
@@ -44,7 +44,7 @@ data:
|
|||||||
|
|
||||||
PAYLOAD=$( jq -n \
|
PAYLOAD=$( jq -n \
|
||||||
--arg random_port "true" \
|
--arg random_port "true" \
|
||||||
'{random_port: $random_port' );
|
'{random_port: $random_port}' );
|
||||||
|
|
||||||
echo " ";
|
echo " ";
|
||||||
echo ">> Setting port to random ...";
|
echo ">> Setting port to random ...";
|
||||||
@@ -64,7 +64,7 @@ data:
|
|||||||
|
|
||||||
PAYLOAD=$( jq -n \
|
PAYLOAD=$( jq -n \
|
||||||
--arg listen_port "${1}" \
|
--arg listen_port "${1}" \
|
||||||
'{listen_port: $listen_port' );
|
'{listen_port: $listen_port}' );
|
||||||
|
|
||||||
echo " ";
|
echo " ";
|
||||||
echo ">> Updating port with ${1} ...";
|
echo ">> Updating port with ${1} ...";
|
||||||
|
|||||||
Reference in New Issue
Block a user