diff --git a/get-last-rss-post.sh b/get-last-rss-post.sh index 24d4c2e..425d5a3 100755 --- a/get-last-rss-post.sh +++ b/get-last-rss-post.sh @@ -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 \ No newline at end of file