Explorar o código

call cr only when build succeded

Noah Vogt hai 1 ano
pai
achega
05dbfcc137
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  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