diff options
author | FadeMind | 2016-01-06 21:20:47 +0100 |
---|---|---|
committer | FadeMind | 2016-01-06 21:20:47 +0100 |
commit | df1abc43b38709046b3bfcd0aa331c69832ddab2 (patch) | |
tree | 502c4f829de93b7e6f0ab72ac75e0cb97a51ee55 /INSTALL | |
parent | 549289e1eeae989b98521ddb9cd5a7907bf73dc1 (diff) | |
download | aur-df1abc43b38709046b3bfcd0aa331c69832ddab2.tar.gz |
update
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL new file mode 100644 index 000000000000..5692842a4b78 --- /dev/null +++ b/INSTALL @@ -0,0 +1,19 @@ +users=$(loginctl --no-legend list-users | awk '{ print $2 }' | sed ':a;N;$!ba;s/\n/ /g') + +_tldr_update() { +for i in "$users"; do + su $i -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID tldr --update' +done +} + +post_install() { + _tldr_update +} + +post_upgrade() { + _tldr_update +} + +post_remove() { + return 0 +} |