Skip to content

Commit

Permalink
Merge pull request #179 from mknos/install-dir
Browse files Browse the repository at this point in the history
install: ignore directories in source file list
  • Loading branch information
briandfoy committed Jul 5, 2023
2 parents 14ca7ce + c3fd0ad commit bf05c28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,12 @@ sub install_files {
}
}

if (-d $file) {
warn "$0: ignoring directory '$file'\n";
$Errors++;
next;
}

if ($opt{C}) {
if (system "cmp", "-s", $file, $targ) {
warn "$0: copy $file $targ\n" if $Debug;
Expand Down

0 comments on commit bf05c28

Please sign in to comment.