diff --git a/Initializer.php b/Initializer.php index 17837c7..578f083 100755 --- a/Initializer.php +++ b/Initializer.php @@ -439,18 +439,18 @@ $root = $this->getRoot(); foreach ($paths as $writable) { $fullPath = "$root/$writable"; - if (is_dir($fullPath)) { + if (is_dir($fullPath) || is_file($fullPath)) { if (@chmod($fullPath, 0777)) { echo $this->formatMessage( " ***** Set writable $writable (chmod 0777)", [ 'fg-yellow' ] ) . "\n"; } else { - $this->printError("Operation chmod not permitted for directory $writable."); + $this->printError("Operation chmod not permitted for directory or file $writable."); } } else { if (!@mkdir($fullPath, 0777, true)) { - $this->printError("Directory $writable does not exist and cannot be created."); + $this->printError("Directory or file $writable does not exist and cannot be created."); } } } -- libgit2 0.21.4