浏览代码

call cr only when build succeded

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

+ 4 - 3
local-bin/reportbuild

@@ -1,8 +1,9 @@
 #!/bin/sh
 
 makepkg -fC
-sendreportmail
-if echo "$1" | grep -q "c"; then
-    cr
+if sendreportmail | grep -q "BUILD SUCCESS"; then
+    if echo "$1" | grep -q "c"; then
+        cr
+    fi
 fi
 sudo systemctl suspend