mirror of
https://git.envs.net/envs/ops.git
synced 2024-06-15 13:26:39 +00:00
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'
|
printf 'toot as envs.net\n\n'
|
||||||
|
|
||||||
if [ -n "$1" ] && [ -z "$2" ]; then
|
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
|
else
|
||||||
printf 'usage: envs_toot "your message"\n'
|
printf 'usage: envs_toot "your message"\n'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user