Skip to content

Commit

Permalink
Fix indention
Browse files Browse the repository at this point in the history
Signed-off-by: yubiuser <github@yubiuser.dev>
  • Loading branch information
yubiuser committed Jul 24, 2024
1 parent cfa0f76 commit 2d461e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions padd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ DeleteSession() {
}

Authenticate() {
sessionResponse="$(curl -sk -X POST "${API_URL}auth" --user-agent "PADD ${padd_version}" --data "{\"password\":\"${password}\"}" )"
sessionResponse="$(curl -sk -X POST "${API_URL}auth" --user-agent "PADD ${padd_version}" --data "{\"password\":\"${password}\"}" )"

if [ -z "${sessionResponse}" ]; then
moveXOffset; echo "No response from FTL server. Please check connectivity and use the options to set the API URL"
Expand All @@ -247,7 +247,7 @@ Authenticate() {
GetFTLData() {
local response
# get the data from querying the API as well as the http status code
response=$(curl -sk -w "%{http_code}" -X GET "${API_URL}$1" -H "Accept: application/json" -H "sid: ${SID}" )
response=$(curl -sk -w "%{http_code}" -X GET "${API_URL}$1" -H "Accept: application/json" -H "sid: ${SID}" )

# status are the last 3 characters
status=$(printf %s "${response#"${response%???}"}")
Expand Down

0 comments on commit 2d461e7

Please sign in to comment.