diff --git a/src/Server/Configuration.php b/src/Server/Configuration.php index fd350b1c..5f0c4b1c 100644 --- a/src/Server/Configuration.php +++ b/src/Server/Configuration.php @@ -250,6 +250,9 @@ class Configuration */ public function getUser() { + if(null === $this->user) { + $this->user = ask("User:", trim(runLocally('whoami'))); + } return $this->user; } diff --git a/src/functions.php b/src/functions.php index 53a943b5..4165090b 100644 --- a/src/functions.php +++ b/src/functions.php @@ -101,7 +101,7 @@ function run($command, $raw = false) } /** - * Execute commands og local machine. + * Execute commands on local machine. * @param string $command Command to run locally. * @return string Output of command. */ @@ -317,4 +317,4 @@ function env() function config() { return env()->getConfig(); -} \ No newline at end of file +}