fixed double echo in -r

This commit is contained in:
Massimo Scagliola 2024-05-18 20:10:29 +02:00
parent c3cd085c14
commit e54a6c092a
1 changed files with 1 additions and 2 deletions

View File

@ -93,7 +93,6 @@ random() {
"$ cat new_blog_post.md\n"
"🤖 Beep. Boop. I'm a script to share my new blog post:")
EXPRESSION=${EXPRESSIONS[ $RANDOM % ${#EXPRESSIONS[@]} ]}
echo_msg
}
yes_or_no() {
@ -103,7 +102,7 @@ yes_or_no() {
[Yy]*) echo "$EXPRESSION \"$TITLE\"\n\n$LINK" | \
/opt/homebrew/bin/toot post -v $VISIBILITY ; return 0 ;;
[Nn]*) echo "Exiting." ; cleanup 0 ;;
[Rr]*) echo "\nPicking up a new expression:"; random ;;
[Rr]*) echo "\nPicking up a new expression:"; random; echo_msg ;;
esac
done
}