Skip to content

Commit 9cd1070

Browse files
committed
Merge branch 'issue/macos-update-command' of https://github.com/abhijitrakas/easyengine into abhijitrakas-issue/macos-update-command
2 parents 6887744 + cc6dde4 commit 9cd1070

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

php/EE/Runner.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,10 +869,17 @@ private function maybe_trigger_migration() {
869869
$base_current_version = preg_replace( '/-nightly.*$/', '', EE_VERSION );
870870

871871
if ( Comparator::lessThan( $base_current_version, $base_db_version ) ) {
872+
873+
$ee_update_command = IS_DARWIN ? 'brew upgrade easyengine' : 'ee cli update --stable --yes';
874+
$ee_update_msg = sprintf(
875+
'It seems you\'re not running latest version. Update EasyEngine using `%s`.',
876+
$ee_update_command
877+
);
878+
872879
if ( ! empty( $this->arguments ) && 'cli' === $this->arguments[0] ) {
873-
EE::warning( 'It seems you\'re not running latest version. Update EasyEngine using `ee cli update --stable --yes`.' );
880+
EE::warning( $ee_update_msg );
874881
} else {
875-
EE::error( 'It seems you\'re not running latest version. Update EasyEngine using `ee cli update --stable --yes`.' );
882+
EE::error( $ee_update_msg );
876883
}
877884
} elseif ( $db_version !== $current_version ) {
878885
EE::log( 'Executing migrations. This might take some time.' );

0 commit comments

Comments
 (0)