Remove isWin/isWindows functions and remove HAS_WHICH definition and usage

This commit is contained in:
DariusIII
2018-07-23 14:29:31 +02:00
parent b7d8ddcb44
commit 351509a165
4 changed files with 9 additions and 50 deletions
+1 -3
View File
@@ -28,13 +28,11 @@ use Blacklight\ColorCLI;
use Blacklight\db\PreDb;
use Blacklight\utility\Utility;
if (! Utility::isWin()) {
$canExeRead = Utility::canExecuteRead(NN_RES);
$canExeRead = Utility::canExecuteRead(NN_RES);
if (is_string($canExeRead)) {
exit($canExeRead);
}
unset($canExeRead);
}
if (! is_writable(NN_RES)) {
exit('The ('.NN_RES.') folder must be writable.'.PHP_EOL);