2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-23 12:51:10 +00:00

fix bug #5612 of xcattest (#5613)

This commit is contained in:
Weihua Hu
2018-09-07 11:14:19 +08:00
committed by yangsong
parent d6f1eef857
commit 2220828d78

View File

@@ -1741,7 +1741,9 @@ sub get_files_recursive
next if ($direntry eq '..');
my $target = "$dir/$direntry";
if (-d $target) {
get_files_recursive($target, $files_path_ref);
unless ($target =~ /xcat-inventory\/templates/){
get_files_recursive($target, $files_path_ref);
}
} else {
push(@{$files_path_ref}, glob("$target\n"));
}