diff options
| author | Paul Buetow <paul@buetow.org> | 2023-03-20 22:00:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-03-20 22:00:45 +0200 |
| commit | b914b98cd80d1f17f190ef50fef2a6aa85d5bb3b (patch) | |
| tree | 3b2872c5bbd1fe7e97e766268dc69fcf57a1b265 /uptime-stats.gmi.tpl | |
| parent | b0081a37f79469d1219a208bb3b8fe12bc2f5831 (diff) | |
use multi line template
Diffstat (limited to 'uptime-stats.gmi.tpl')
| -rw-r--r-- | uptime-stats.gmi.tpl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/uptime-stats.gmi.tpl b/uptime-stats.gmi.tpl index 1111ce84..a37696a0 100644 --- a/uptime-stats.gmi.tpl +++ b/uptime-stats.gmi.tpl @@ -9,4 +9,10 @@ The following stats were collected via `uptimed` on all of my personal computers => https://github.com/rpodgorny/uptimed => https://codeberg.org/snonux/guprecords -<< test -f ~/git/uprecords/uprecords.md && cat ~/git/uprecords/uprecords.md +<<< + if [ -f ~/git/uprecords/uprecords.md ]; then + cat ~/git/uprecords/uprecords.md + else + $SED -n '/Top/,$p' uptime-stats.gmi + fi +>>> |
