Skip to content

Commit

Permalink
Release v1.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimLink authored Jun 28, 2022
1 parent 84982fc commit 528698e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.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.10.1] - 2022-06-28
### Fixed
- Warden env version for devclean, this not working, so we echo a hint instead

## [1.10.0] - 2022-06-27
### Added
- Support for cache-clean from [mageTV](https://github.com/mage2tv/magento-cache-clean),
Expand Down
7 changes: 4 additions & 3 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.10.0"
VERSION="1.10.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 @@ -221,15 +221,16 @@ case "${@}" in
;;

"devclean")
CACHE_CLI="echo 'cache-clean not installed (https://github.com/mage2tv/magento-cache-clean)'"
CACHE_CLI="echo cache-clean not installed (https://github.com/mage2tv/magento-cache-clean)"
if command -v vendor/bin/cache-clean.js &> /dev/null; then
CACHE_CLI="vendor/bin/cache-clean.js --watch"
elif command -v cache-clean.js &> /dev/null; then
CACHE_CLI="cache-clean.js --watch"
fi

if [[ $WARDEN == 1 ]]; then
warden env exec -T php-fpm $CACHE_CLI
echo "This is Warden env, skipping cache-clean" &&
echo "Please run it your self, using mageTV cache-clean.js inside the warden env"
else
$CACHE_CLI
fi
Expand Down

0 comments on commit 528698e

Please sign in to comment.