!/bin/bash
set -e
DIR=/tmp/foobar
cd $DIR
FILES=$(ls *.txt)
set ${FILES}
shift $(($RANDOM % $#))
madonctl toot $(cat $1)
Created
February 20, 2019 16:52
-
-
Save bortzmeyer/21091a5568294e55f3c0016f308ebfea to your computer and use it in GitHub Desktop.
A simple script to post on the fediverse one file at random
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment