Skip to content

Commit

Permalink
feat: root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Mar 26, 2024
1 parent 50d23f3 commit 15ffaeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/fresns
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ case $COMMAND in
else
echo 'Please input this content in your terminal:'
echo
echo export PATH=$rootDir/vendor/bin:'$PATH'
echo export PATH=$rootDir:$rootDir/vendor/bin:'$PATH'
fi
;;
esac
3 changes: 2 additions & 1 deletion src/Commands/FresnsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public function handle()

public function activate(string $vendorBinPath)
{
$command = sprintf('export %s', "PATH=$vendorBinPath:".'$PATH');
$rootDir = base_path();
$command = sprintf('export %s', "PATH=$rootDir:$vendorBinPath:".'$PATH');
if (! str_contains(getenv('PATH'), $vendorBinPath)) {
$this->warn('Add Project vendorBinPath');
$this->line('');
Expand Down

0 comments on commit 15ffaeb

Please sign in to comment.