From c9df497abf834d84e6242f8688620066f7ecc142 Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Thu, 31 Oct 2024 14:31:25 +0100 Subject: [PATCH] fix: new:site command minor fix --- src/Command/NewSite.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/NewSite.php b/src/Command/NewSite.php index d2e127ac4..ce4597b3c 100644 --- a/src/Command/NewSite.php +++ b/src/Command/NewSite.php @@ -133,8 +133,8 @@ protected function execute(InputInterface $input, OutputInterface $output) $output->writeln(\sprintf('Your new website is created in %s.', realpath($this->getPath()))); $this->io->newLine(); $this->io->listing([ - 'Start the built-in preview server with `' . $_SERVER['argv'][0] . ' serve`', - 'You can create a new page with `' . $_SERVER['argv'][0] . ' new:page`', + 'Start the built-in preview server with `' . basename($_SERVER['argv'][0]) . ' serve`', + 'You can create a new page with `' . basename($_SERVER['argv'][0]) . ' new:page`', ]); $this->io->text('Visit https://cecil.app for documentation and more.'); } catch (\Exception $e) {