Notify.php
authorAlan Knowles <alan@roojs.com>
Mon, 29 Apr 2013 02:31:20 +0000 (10:31 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 29 Apr 2013 02:31:20 +0000 (10:31 +0800)
Notify.php

index 1185e25..8d2e241 100644 (file)
@@ -254,6 +254,13 @@ class Pman_Core_Notify extends Pman
        
         $pipe = array();
         echo "call proc_open $cmd\n";
+        
+        
+        if (!empty($this->opts['dryrun'])) {
+            echo "DRY RUN\n";
+            return;
+        }
+        
         $p = proc_open($cmd, $descriptorspec, $pipes, $cwd );
         $info =  proc_get_status($p);
         $this->pool[] = array(