Skip to content

Commit 059a696

Browse files
committed
Fix path check on Windows.
Closes #1071
1 parent f1b25a5 commit 059a696

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Command/PluginCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ protected function _generateFiles(
264264
$template = substr($template, strrpos($template, 'Plugin' . DIRECTORY_SEPARATOR) + 7, -4);
265265
$template = rtrim($template, '.');
266266
$filename = $template;
267-
if ($filename === 'src/Plugin.php') {
268-
$filename = 'src/' . $name . 'Plugin.php';
267+
if ($filename === 'src' . DIRECTORY_SEPARATOR . 'Plugin.php') {
268+
$filename = 'src' . DIRECTORY_SEPARATOR . $name . 'Plugin.php';
269269
}
270270
$this->_generateFile($renderer, $template, $root, $filename, $io);
271271
}

0 commit comments

Comments
 (0)