Replace disallowed operators in tools/

This commit is contained in:
Dylan K. Taylor
2022-01-20 16:48:06 +00:00
parent 9c328690f8
commit 4d55935bd8
3 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ if($inputPath === false){
exit(1);
}
$backupPath = realpath($args["backup"]);
if($backupPath === false || (!@mkdir($backupPath, 0777, true) and !is_dir($backupPath)) or !is_writable($backupPath)){
if($backupPath === false || (!@mkdir($backupPath, 0777, true) && !is_dir($backupPath)) || !is_writable($backupPath)){
fwrite(STDERR, "Backup file path " . $args["backup"] . " is not writable (permission error or doesn't exist), aborting" . PHP_EOL);
exit(1);
}