Skip to content

Commit

Permalink
FIX: Magerun with laravel valet
Browse files Browse the repository at this point in the history
  • Loading branch information
allrude committed Jun 9, 2022
1 parent 13957e6 commit e375a4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.9.1] - 2022-06-09
### Fixed
- Magerun with laravel valet, by removing the valet prefix

## [1.9.0] - 2022-06-09
### Added
- `mage self-update` command
Expand Down
8 changes: 1 addition & 7 deletions mage
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RED='\033[0;31m'
GREEN='\033[1;32m'
BLUE='\033[1;34m'

VERSION="1.9.0"
VERSION="1.9.1"
GITNAME="$(git config --global --get user.name | head -n1 | cut -d " " -f1)"
GITEMAIL="$(git config --global --get user.email)"
ADMINNAME="admin_$(echo "$GITNAME" | tr '[:upper:]' '[:lower:]')"
Expand Down Expand Up @@ -45,12 +45,6 @@ fi
if [[ $(valet -V | cut -f1 -d '.') == "Laravel Valet 3" ]]; then
MAGENTO_CLI="valet bin/magento"
COMPOSER_CLI="valet composer"

if command -v magerun2 &>/dev/null; then
MAGERUN_CLI="valet magerun2"
elif command -v n98-magerun2 &>/dev/null; then
MAGERUN_CLI="valet n98-magerun2"
fi
fi

if [ -f .env ] && grep --silent 'WARDEN_ENV_NAME' .env; then
Expand Down

0 comments on commit e375a4d

Please sign in to comment.