ソースを参照

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