report: dir2text: print what we process on STDERR

to avoid those "lonely" "OK" prints for those

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-11 15:12:15 +02:00
parent f784b92573
commit 6b72e9dd74

View File

@ -9,6 +9,7 @@ use PVE::Tools;
my sub dir2text {
my ($target_dir, $regexp) = @_;
print STDERR "dir2text '${target_dir}${regexp}'...";
my $text = '';
PVE::Tools::dir_glob_foreach($target_dir, $regexp, sub {
my ($file) = @_;