Skip to content

Commit

Permalink
don't fail on posting error from a client
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Jul 18, 2023
1 parent c893897 commit bbbe483
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ ${EDITOR:-vi} "$temp_file"
text=$(<"$temp_file")

if [ ! -z "$text" ] && [ "$text" != " " ]; then
t update "$text"
bsky post "$text"
toot post "$text"
t update "$text" || echo "failed to post: t"
toot post "$text" || echo "failed to post: toot"
bsky post "$text" || echo "failed to post: bsky"
else
echo "Aborted."
fi
Expand Down

0 comments on commit bbbe483

Please sign in to comment.