Skip to content

Commit

Permalink
[console] Minor code fixes. (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Jun 30, 2017
1 parent 1030e98 commit 9e8c3df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/dist/chain/quick-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ commands:
- command: exec
arguments:
bin: drupal site:install %{{profile}} --root=%{{directory}} --db-type="sqlite" --no-interaction
# Start PHP bult-in server
# Start PHP built-in server
- command: exec
arguments:
bin: drupal server --root=%{{directory}}
14 changes: 8 additions & 6 deletions src/Utils/ShellProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ public function exec($command, $workingDirectory=null)
$workingDirectory = $this->appRoot;
}

$this->io->newLine();
$this->io->comment(
$this->translator->trans('commands.exec.messages.working-directory') .': ',
false
);
$this->io->writeln($workingDirectory);
if (realpath($workingDirectory)) {
$this->io->comment(
$this->translator->trans('commands.exec.messages.working-directory') .': ',
false
);
$this->io->writeln(realpath($workingDirectory));
}

$this->io->comment(
$this->translator->trans('commands.exec.messages.executing-command') .': ',
false
Expand Down

0 comments on commit 9e8c3df

Please sign in to comment.