1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

Fix resolution.

This commit is contained in:
Taylor Otwell
2016-05-11 13:31:17 -05:00
parent efbbc0fa93
commit e47034618d

2
valet
View File

@@ -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