Skip to content

Commit

Permalink
Fixed error on Windows
Browse files Browse the repository at this point in the history
`ps aux` trigger error on Windows.
  • Loading branch information
maks-rafalko committed Sep 20, 2014
1 parent f09bf28 commit 304aa57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Umpirsky/PermissionsHandler/ScriptHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ class ScriptHandler
{
public static function setPermissions(CommandEvent $event)
{
if ('WIN' === strtoupper(substr(PHP_OS, 0, 3))) {
$event->getIO()->write('No permissions setup is required on Windows.');
return;
}

$event->getIO()->write('Setting up permissions.');

try {
Expand Down

0 comments on commit 304aa57

Please sign in to comment.