Ver Fonte

fix reportbuild for non-systemd systems

Noah Vogt há 1 ano atrás
pai
commit
9ca14f7896
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      local-bin/reportbuild

+ 1 - 1
local-bin/reportbuild

@@ -6,4 +6,4 @@ if sendreportmail | grep -q "BUILD SUCCESS"; then
         cr
         cr
     fi
     fi
 fi
 fi
-sudo systemctl suspend
+loginctl suspend || sudo systemctl suspend