Skip to content

Commit

Permalink
fix output writeLN issue
Browse files Browse the repository at this point in the history
  • Loading branch information
joemewes committed Oct 26, 2016
1 parent bd06313 commit 752d1bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
### Questions?
Ping me on [Twitter](http://twitter.com/@4alldigital)

```composer global require dockerdrupal/cli:1.0.5```
```composer global require dockerdrupal/cli:1.0.7```

# Status
## Initial Commands structure
Expand Down
4 changes: 2 additions & 2 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Application extends ParentApplication
/**
* @var string
*/
const VERSION = '1.0.5';
const VERSION = '1.0.7';

/**
* @var string
Expand Down Expand Up @@ -274,4 +274,4 @@ public function checkForAppContainers($appname, $io){
exit;
}
}
}
}
4 changes: 3 additions & 1 deletion src/Command/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,12 @@ private function addHost(){
$process = new Process(sprintf('echo "%s %s" | sudo tee -a %s >/dev/null', $ip, $hostname, $hosts_file));
$process->run(
function ($type, $buffer) use ($output) {
if(isset($output)){
$output->writeln($buffer);
}
}
);
}
}

}
}

0 comments on commit 752d1bf

Please sign in to comment.