Skip to content

Commit

Permalink
fix unix path error
Browse files Browse the repository at this point in the history
  • Loading branch information
recca0120 authored Jul 7, 2018
1 parent ee0edae commit b05ca7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Commands/Vi.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function handle()
$path = $this->argument('path');
$text = $this->option('text');
$root = function_exists('base_path') === true ? base_path() : getcwd();
$path = trim($root, '/').'/'.$path;
$path = rtrim($root, '/').'/'.$path;

if (is_null($text) === false) {
$this->files->put($path, $text);
Expand Down

0 comments on commit b05ca7a

Please sign in to comment.