mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-14 05:55:54 +00:00
fix: add support for windows home path
This commit is contained in:
@@ -18,13 +18,11 @@ class StoreAuthenticationTokenCommand extends Command
|
||||
|
||||
public function handle()
|
||||
{
|
||||
$config = config('expose', []);
|
||||
|
||||
if (! is_null($this->argument('token'))) {
|
||||
$this->info('Setting the expose authentication token to "'.$this->argument('token').'"');
|
||||
|
||||
$configFile = implode(DIRECTORY_SEPARATOR, [
|
||||
$_SERVER['HOME'],
|
||||
$_SERVER['HOME'] ?? $_SERVER['USERPROFILE'],
|
||||
'.expose',
|
||||
'config.php',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user