From aa23223f71b17b626a37b1a0302142563c4307f3 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Thu, 14 Jul 2016 15:25:14 -0500 Subject: [PATCH] Also check the output of git before saying there is modified files Indent files to improve readability --- validate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validate.php b/validate.php index 4107d07ead..9efdb54b59 100755 --- a/validate.php +++ b/validate.php @@ -93,9 +93,9 @@ if($username === 'root') { $modifiedcmd = 'su '.$config['user'].' -c "'.$modifiedcmd.'"'; } exec($modifiedcmd, $cmdoutput, $code); -if($code !== 0) { +if($code !== 0 && !empty($cmdoutput)) { print_warn("Your local git contains modified files, this could prevent automatic updates.\nModified files:"); - echo(implode("\n", $cmdoutput) . "\n"); + echo(' ' . implode("\n ", $cmdoutput) . "\n"); } echo "DB Schema: ".$versions['db_schema']."\n";