show toot account

This commit is contained in:
Massimo Scagliola 2024-05-18 16:16:35 +02:00
parent 47b7494464
commit 1ebd671bfd
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,8 @@ echo "+++++\n"
if [[ "$TOOT" == "1" ]]; then
which toot > /dev/null # Check if toot is installed
if ! [[ $? == "0" ]]; then echo "ERROR. Toot is not installed. Exiting."; cleanup 1; fi
yes_or_no "Post it on Mastodon?"
ACCOUNT=$(toot auth | grep ACTIVE | awk '{print $2}')
yes_or_no "Post it on Mastodon (as $ACCOUNT)?"
fi
cleanup 0