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

use variable

This commit is contained in:
Taylor Otwell
2016-05-11 10:42:04 -05:00
parent c32b31d55e
commit 9b176f310f

2
valet
View File

@@ -4,7 +4,7 @@ SOURCE="${BASH_SOURCE[0]}"
if [[ -L $SOURCE ]]
then
DIR=$(php -r "echo dirname(readlink('${BASH_SOURCE[0]}'));")
DIR=$(php -r "echo dirname(readlink('$SOURCE'));")
else
DIR="$( cd "$( dirname "$SOURCE" )" && pwd )"
fi