1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 16:50:09 +01:00

Internal update: use existing function instead of duplicated code

This commit is contained in:
Chris Brown
2020-01-04 10:05:25 -05:00
parent d90be6c730
commit e10f788cea

View File

@@ -29,7 +29,7 @@ function __construct(CommandLine $cli, Filesystem $files)
*/
function symlinkToUsersBin()
{
$this->cli->quietlyAsUser('rm '.$this->valetBin);
$this->unlinkFromUsersBin();
$this->cli->runAsUser('ln -s "'.realpath(__DIR__.'/../../valet').'" '.$this->valetBin);
}