Skip to content

Commit

Permalink
Only emit data directory message if the data dir is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Feb 1, 2023
1 parent 3d1c7b4 commit 8e3d093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/legacy/util.php
Expand Up @@ -1035,7 +1035,7 @@ public static function checkDataDirectoryValidity($dataDirectory) {
' ".ocdata" in its root.')
];
}
if (\OC::$CLI) {
if (\OC::$CLI && !empty($errors)) {
print "Value of Data directory was: '$dataDirectory'" . PHP_EOL;
}
return $errors;
Expand Down

0 comments on commit 8e3d093

Please sign in to comment.