Skip to content

Commit

Permalink
fixes bug with older ubuntu boxes and pgrep
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Nov 16, 2016
1 parent add6f54 commit 7fa67b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Node.php
Expand Up @@ -35,8 +35,8 @@ public static function post($module, $url, $options, $data) {
}

public static function checkProcess() {
exec('pgrep -lf "larpug.js" | grep -v pgrep', $output);
if (count($output) < 1) {
exec('pgrep -lf "larpug.js"', $output);
if (count($output) < 2) {
return false;
}
return true;
Expand Down

0 comments on commit 7fa67b5

Please sign in to comment.