Skip to content

Commit e3e60ba

Browse files
author
NiallSmyth
committed
Fix for path concatenation without directory separator.
1 parent 8837815 commit e3e60ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CompileScssCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ protected function scanDirectoryForScssFiles($directoryPath)
9292
{
9393
$dirHandle = opendir($directoryPath);
9494
$scssFiles = [];
95-
while ($fileName = readdir($dirHandle)) {
95+
while (($fileName = readdir($dirHandle)) !== false) {
9696
if (!StringTools::startsWith($fileName, '_') && StringTools::endsWith($fileName, '.scss')) {
97-
$scssFiles[] = $directoryPath . $fileName;
97+
$scssFiles[] = $directoryPath . '/' . $fileName;
9898
}
9999
}
100100
closedir($dirHandle);

0 commit comments

Comments
 (0)