Skip to content

Commit

Permalink
Merge pull request #1510 from saibotk/fix-php-proxy
Browse files Browse the repository at this point in the history
fix(entry-script): use correct php binary for proxy commands
  • Loading branch information
mattstauffer authored Dec 20, 2024
2 parents bcf78f5 + 85a8c89 commit e2d6191
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions valet
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ elif [[ "$1" = "php" ]]
then
if [[ $2 == *"--site="* ]]; then
SITE=${2#*=}
$(php "$DIR/cli/valet.php" which-php $SITE) "${@:3}"
$("$PHP" "$DIR/cli/valet.php" which-php $SITE) "${@:3}"
else
$(php "$DIR/cli/valet.php" which-php) "${@:2}"
$("$PHP" "$DIR/cli/valet.php" which-php) "${@:2}"
fi

exit
Expand All @@ -152,9 +152,9 @@ elif [[ "$1" = "composer" ]]
then
if [[ $2 == *"--site="* ]]; then
SITE=${2#*=}
$(php "$DIR/cli/valet.php" which-php $SITE) $(which composer) "${@:3}"
$("$PHP" "$DIR/cli/valet.php" which-php $SITE) $(which composer) "${@:3}"
else
$(php "$DIR/cli/valet.php" which-php) $(which composer) "${@:2}"
$("$PHP" "$DIR/cli/valet.php" which-php) $(which composer) "${@:2}"
fi

exit
Expand Down

0 comments on commit e2d6191

Please # to comment.