diff --git a/src/app-store/src/Command/ExtensionUninstallCommand.php b/src/app-store/src/Command/ExtensionUninstallCommand.php index c9ec1ca5..8b7fb5dd 100644 --- a/src/app-store/src/Command/ExtensionUninstallCommand.php +++ b/src/app-store/src/Command/ExtensionUninstallCommand.php @@ -51,9 +51,9 @@ public function __invoke() $info['homepage'] ?? '--', ]; $this->table($headers, $rows); - $confirm = $yes ?: $this->confirm('Enter to start the installation', true); + $confirm = $yes ?: $this->confirm('Is the uninstallation cancelled?', true); if (! $confirm) { - $this->output->success('Installation has been successfully canceled'); + $this->output->success('Plugin uninstallation operation cancelled successfully'); return; } Plugin::uninstall($path); diff --git a/src/app-store/src/Plugin.php b/src/app-store/src/Plugin.php index 84eb7682..61e803f6 100644 --- a/src/app-store/src/Plugin.php +++ b/src/app-store/src/Plugin.php @@ -120,7 +120,7 @@ public static function read(string $path) foreach ($jsonPaths as $jsonPath) { if ($jsonPath->getRelativePath() === $path) { $info = json_decode(file_get_contents($jsonPath->getRealPath()), true); - $info['status'] = file_exists($jsonPath->getRealPath() . '/' . self::INSTALL_LOCK_FILE); + $info['status'] = file_exists(dirname($jsonPath->getRealPath()) . '/' . self::INSTALL_LOCK_FILE); return $info; } }