fix double echo of git command on --verbose

This commit is contained in:
Ralf Becker 2019-02-23 12:29:40 +01:00
parent b0fd1965f1
commit e5ff5ed991

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.': ';
}