Skip to content

Commit

Permalink
Deleting a session successfully returns 204 (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
yubiuser committed Jan 11, 2024
2 parents b625aca + d58149d commit 50f359d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions padd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,12 @@ DeleteSession() {

printf "\n\n"
case "${deleteResponse}" in
"200") moveXOffset; printf "%b" "A session that was not created cannot be deleted (e.g., empty API password).\n";;
"204") moveXOffset; printf "%b" "Session successfully deleted.\n";;
"401") moveXOffset; printf "%b" "Logout attempt without a valid session. Unauthorized!\n";;
"410") moveXOffset; printf "%b" "Session successfully deleted.\n";;
esac;
else
# no session to delete, just print a newline for nicer output
echo
fi

}
Expand Down Expand Up @@ -1388,7 +1390,7 @@ StartupRoutine(){
moveXOffset; printf "%b" "Establishing connection with FTL...\n"
Authenthication

printf "%b" "Starting PADD...\n"
moveXOffset; printf "%b" "Starting PADD...\n"

moveXOffset; printf "%b" " [■·········] 10%\r"

Expand Down

0 comments on commit 50f359d

Please sign in to comment.