mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
use variable
This commit is contained in:
2
valet
2
valet
@@ -4,7 +4,7 @@ SOURCE="${BASH_SOURCE[0]}"
|
|||||||
|
|
||||||
if [[ -L $SOURCE ]]
|
if [[ -L $SOURCE ]]
|
||||||
then
|
then
|
||||||
DIR=$(php -r "echo dirname(readlink('${BASH_SOURCE[0]}'));")
|
DIR=$(php -r "echo dirname(readlink('$SOURCE'));")
|
||||||
else
|
else
|
||||||
DIR="$( cd "$( dirname "$SOURCE" )" && pwd )"
|
DIR="$( cd "$( dirname "$SOURCE" )" && pwd )"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user