Skip to content

Commit 6dd58a8

Browse files
committed
Remove phar
1 parent c4eb3d4 commit 6dd58a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

php/commands/src/CLI_Command.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,10 @@ public function self_uninstall( $args, $assoc_args ) {
516516

517517
Utils\default_launch("rm -df $home/ee-sites/");
518518
Utils\default_launch("rm -rf /opt/easyengine/");
519+
520+
if ( Utils\inside_phar() ) {
521+
unlink( realpath( $_SERVER['argv'][0] ) );
522+
}
519523
}
520524

521525
/**

0 commit comments

Comments
 (0)