Skip to content

Commit

Permalink
fixed but copy command
Browse files Browse the repository at this point in the history
  • Loading branch information
santutu committed Oct 24, 2019
1 parent 9668048 commit 10b1459
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Commands/CopyDotEnvCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,17 @@ public function __construct()
*/
public function handle()
{

$env = $this->argument('env');
$dotEnv = new DotEnv($env);
$dotEnv = new DotEnv('.env');

if (file_exists('.env')) {
if (!$this->confirm('Already exist .env Do you force this command? (be backup as.env.temp)')) {
return false;
}
}

if ($dotEnv->copy($env, true)) {
$this->info("copy {$env}");
}
$dotEnv->copy($env);
$this->info("copy {$env}->.env");
}

}

0 comments on commit 10b1459

Please sign in to comment.