mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 16:10:08 +01:00
Addressing issue #678
This commit is contained in:
committed by
Matt Stauffer
parent
8f03204b61
commit
b05c773e1d
4
valet
4
valet
@@ -5,7 +5,7 @@ SOURCE="${BASH_SOURCE[0]}"
|
||||
# If the current source is a symbolic link, we need to resolve it to an
|
||||
# actual directory name. We'll use PHP to do this easier than we can
|
||||
# do it in pure Bash. So, we'll call into PHP CLI here to resolve.
|
||||
if [[ -L $SOURCE ]]
|
||||
if [[ -L "$SOURCE" ]]
|
||||
then
|
||||
DIR=$(php -r "echo dirname(realpath('$SOURCE'));")
|
||||
else
|
||||
@@ -22,7 +22,7 @@ fi
|
||||
|
||||
if [[ "$EUID" -ne 0 ]]
|
||||
then
|
||||
sudo $SOURCE "$@"
|
||||
sudo "$SOURCE" "$@"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user