1
0
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:
Sahib J. Leo
2018-12-04 02:04:17 -06:00
committed by Matt Stauffer
parent 8f03204b61
commit b05c773e1d
4 changed files with 8 additions and 8 deletions

4
valet
View File

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