From f55aee99b7a71e1ca771f6e406fa2b1ca7585f49 Mon Sep 17 00:00:00 2001 From: fbt Date: Sat, 28 Nov 2026 02:49:54 +0000 Subject: [PATCH] curl -f Signed-off-by: fbt --- ufw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ufw b/ufw index 35a06ab..0b29b10 100755 --- a/ufw +++ b/ufw @@ -266,7 +266,7 @@ _mktemp() { get_my_ip() { declare api_response api_status api_status_message my_ip - api_response=$( curl -f "$cfg_service_url/ip.json" ) + api_response=$( curl "$cfg_service_url/ip.json" ) (( $? )) && { err "Failed to get a response from the API, folding." return 1 @@ -313,7 +313,7 @@ get_token() { read -sp 'Password: ' password printf '\n' - login_response=$(curl -f -c "$cfg_file.cookiejar" -d "login=$login" -d "password=$password" -sl "$cfg_service_url/login.json") + login_response=$(curl -c "$cfg_file.cookiejar" -d "login=$login" -d "password=$password" -sl "$cfg_service_url/login.json") (( $? )) && { err "Login failed." return 1