From 1fe985cad5a17e5a1efaf6fa5836815abc286501 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 27 Feb 2024 17:04:06 +0200 Subject: [PATCH] fix $check_only parameter and a little nicer cli formatting --- filemanager/fsck.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/filemanager/fsck.php b/filemanager/fsck.php index 3d3b1aaec8..a9604e6e63 100755 --- a/filemanager/fsck.php +++ b/filemanager/fsck.php @@ -24,15 +24,13 @@ $GLOBALS['egw_info'] = [ ]; require(dirname(__DIR__).'/header.inc.php'); -$msgs = Sqlfs\Utils::fsck([ - 'check_only' => $check_only = ($_SERVER['argv'][1] ?? '') !== '--yes', -]); +$msgs = Sqlfs\Utils::fsck($check_only = ($_SERVER['argv'][1] ?? '') !== '--yes'); echo implode("\n", $msgs)."\n"; if (!$msgs) { - error_log("fsck found NO problems :)"); + echo "fsck found NO problems :)\n"; } elseif ($check_only) { - error_log('Use --yes to fix problems found'); + echo "\nUse --yes to fix problems found\n"; } \ No newline at end of file