From: xf0r3m Date: Thu, 28 Sep 2023 08:58:29 +0000 (+0200) Subject: Poprawiono wyƛwietlanie uptimeu - searx-motd - BT #118 X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=3e5577df385fb746f093d3915759edb139500ba3;p=backup.git Poprawiono wyƛwietlanie uptimeu - searx-motd - BT #118 --- diff --git a/searx-motd b/searx-motd index 5efdf76..a66a387 100755 --- a/searx-motd +++ b/searx-motd @@ -28,7 +28,7 @@ if $(uptime | grep -q 'day'); then echo -e "\tUPTIME: ${utime}m"; else utime=$(uptime | awk '{printf $3}' | sed -e 's/,//' -e 's,:,h ,'); - if $(echo $utime | grep -q ":"); then + if $(echo $utime | grep -q "h"); then echo -e " \tUPTIME: ${utime}m"; else echo -e " \tUPTIME: 0h ${utime}m";