浏览代码

fix reportbuild for non-systemd systems

Noah Vogt 1 年之前
父节点
当前提交
9ca14f7896
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      local-bin/reportbuild

+ 1 - 1
local-bin/reportbuild

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