mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 16:10:08 +01:00
Catch up to #1370
This commit is contained in:
14
valet
14
valet
@@ -143,14 +143,24 @@ then
|
||||
# Proxy PHP commands to the "php" executable on the isolated site
|
||||
elif [[ "$1" = "php" ]]
|
||||
then
|
||||
$($PHP "$DIR/cli/valet.php" which-php) "${@:2}"
|
||||
if [[ $2 == *"--site="* ]]; then
|
||||
SITE=${2#*=}
|
||||
$(php "$DIR/cli/valet.php" which-php $SITE) "${@:3}"
|
||||
else
|
||||
$(php "$DIR/cli/valet.php" which-php) "${@:2}"
|
||||
fi
|
||||
|
||||
exit
|
||||
|
||||
# Proxy Composer commands with the "php" executable on the isolated site
|
||||
elif [[ "$1" = "composer" ]]
|
||||
then
|
||||
$($PHP "$DIR/cli/valet.php" which-php) $(which composer) "${@:2}"
|
||||
if [[ $2 == *"--site="* ]]; then
|
||||
SITE=${2#*=}
|
||||
$(php "$DIR/cli/valet.php" which-php $SITE) $(which composer) "${@:3}"
|
||||
else
|
||||
$(php "$DIR/cli/valet.php" which-php) $(which composer) "${@:2}"
|
||||
fi
|
||||
|
||||
exit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user