Răsfoiți Sursa

call cr only when build succeded

Noah Vogt 1 an în urmă
părinte
comite
05dbfcc137
1 a modificat fișierele cu 4 adăugiri și 3 ștergeri
  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