fix double echo of git command on --verbose

This commit is contained in:
Ralf Becker 2019-02-23 12:29:40 +01:00
parent 82f9b3edc1
commit 7de6b8ac15

View File

@ -251,11 +251,7 @@ foreach(scandir(__DIR__) as $dir)
$cmd .= "$git pull --rebase && ";
}
$cmd .= "(test -z \"$($git stash list)\" || $git stash pop)";
if ($verbose)
{
echo "$cmd\n";
}
elseif ($dir !== '.')
if ($dir !== '.' && !$verbose)
{
echo $dir.': ';
}