Skip to content

Commit 997f32a

Browse files
committed
Fix find command line
find xxx -name \*.gcda -type f -o type l does return : - all files with the .gcda suffix - all symbolic links the updated command line now returns - all files with the .gcda suffix - all symbolic links with the .gcda suffix Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 533db4e commit 997f32a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/geninfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ sub gen_info($)
710710
{
711711
info("Scanning $directory for $ext files ...\n");
712712

713-
@file_list = `find "$directory" $maxdepth $follow -name \\*$ext -type f -o -type l 2>/dev/null`;
713+
@file_list = `find "$directory" $maxdepth $follow -name \\*$ext -type f -o -name \\*$ext -type l 2>/dev/null`;
714714
chomp(@file_list);
715715
if (!@file_list) {
716716
warn("WARNING: no $ext files found in $directory - ".

bin/lcov

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ sub userspace_reset()
599599
{
600600
info("Deleting all .da files in $current_dir".
601601
($no_recursion?"\n":" and subdirectories\n"));
602-
@file_list = `find "$current_dir" $maxdepth $follow -name \\*\\.da -o -name \\*\\.gcda -type f 2>/dev/null`;
602+
@file_list = `find "$current_dir" $maxdepth $follow -name \\*\\.da -type f -o -name \\*\\.gcda -type f 2>/dev/null`;
603603
chomp(@file_list);
604604
foreach (@file_list)
605605
{

0 commit comments

Comments
 (0)