mirror of https://git.envs.net/envs/ops.git
update envs_toot and add post writes username. output looks like: username | your message
This commit is contained in:
parent
3d528b6502
commit
e9edd2ba1c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue