]> gitweb.morketsmerke.org Git - backup.git/commitdiff
Poprawiono wyświetlanie uptimeu - searx-motd - BT #118
authorxf0r3m <jakubstasinski@protonmail.com>
Thu, 28 Sep 2023 08:58:29 +0000 (10:58 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Thu, 28 Sep 2023 08:58:29 +0000 (10:58 +0200)
searx-motd

index 5efdf76ad04c009c68ad8ea3ad82514ce8804092..a66a387b1e51da0740099c3875c215e817cb3fda 100755 (executable)
@@ -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";