diff options
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 +>>> |
