Skip to content

Commit 3060135

Browse files
committed
Run checks before replacing phar
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent 91f841a commit 3060135

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

php/commands/src/CLI_Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ public function update( $_, $assoc_args ) {
286286
$download_url = $newest['package_url'];
287287
$md5_url = str_replace( '.phar', '.phar.md5', $download_url );
288288
}
289+
EE::get_runner()->check_requirements();
289290
EE::log( sprintf( 'Downloading from %s...', $download_url ) );
290291
$temp = \EE\Utils\get_temp_dir() . uniqid( 'ee_', true ) . '.phar';
291292
$headers = array();

0 commit comments

Comments
 (0)