Skip to content

Commit d93f59a

Browse files
committed
Merge branch 'mrrobot47-fix/disable-update-for-darwin' into develop
2 parents 25f1bbc + fa58401 commit d93f59a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

php/commands/src/CLI_Command.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ public function update( $_, $assoc_args ) {
260260
if ( ! Utils\inside_phar() ) {
261261
EE::error( 'You can only self-update Phar files.' );
262262
}
263+
if ( IS_DARWIN ) {
264+
EE::error( 'Please use `brew upgrade easyengine` to update EasyEngine on macOS.' );
265+
}
263266
$old_phar = realpath( $_SERVER['argv'][0] );
264267
if ( ! is_writable( $old_phar ) ) {
265268
EE::error( sprintf( '%s is not writable by current user.', $old_phar ) );

0 commit comments

Comments
 (0)