update envs_toot and add post writes username. output looks like: username | your message

This commit is contained in:
creme 2019-11-30 21:32:13 +01:00
parent 3d528b6502
commit e9edd2ba1c
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
printf 'toot as envs.net\n\n'
if [ -n "$1" ] && [ -z "$2" ]; then
sudo -u services /usr/bin/toot post "$1"
sudo -u services /usr/bin/toot post "$(id -un) | $1"
else
printf 'usage: envs_toot "your message"\n'
fi