mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 16:10:08 +01:00
Fix resolution.
This commit is contained in:
2
valet
2
valet
@@ -7,7 +7,7 @@ SOURCE="${BASH_SOURCE[0]}"
|
||||
# do it in pure Bash. So, we'll call into PHP CLI here to resolve.
|
||||
if [[ -L $SOURCE ]]
|
||||
then
|
||||
DIR=$(php -r "echo dirname(readlink('$SOURCE'));")
|
||||
DIR=$(php -r "echo dirname(realpath('$SOURCE'));")
|
||||
else
|
||||
DIR="$( cd "$( dirname "$SOURCE" )" && pwd )"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user