Skip to content

Commit

Permalink
Nicer output if no session needed to be deleted
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <ckoenig@posteo.de>
  • Loading branch information
yubiuser committed Jan 7, 2024
1 parent 79ca42e commit d58149d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions padd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ DeleteSession() {
"204") moveXOffset; printf "%b" "Session successfully deleted.\n";;
"401") moveXOffset; printf "%b" "Logout attempt without a valid session. Unauthorized!\n";;
esac;
else
# no session to delete, just print a newline for nicer output
echo
fi

}
Expand Down

0 comments on commit d58149d

Please sign in to comment.