diff options
author | Daniel Friesel <derf@finalrewind.org> | 2010-10-05 19:26:17 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2010-10-05 19:26:17 +0200 |
commit | 05717cd36bda800bf559e11c9911391f28f24ea0 (patch) | |
tree | d29962e841e92fb302d89fc05e6e20b38d4c40fd | |
parent | 2eb8e5269426710672d986680722ecf9737ad229 (diff) |
checklinks: Remove support for .links
-rwxr-xr-x | bin/checklinks | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/bin/checklinks b/bin/checklinks index 289f438..f161d7f 100755 --- a/bin/checklinks +++ b/bin/checklinks @@ -182,18 +182,13 @@ GetOptions( 'r|remove' => \$remove, ); -if (-f '.links') { - $linkfile = '.links'; +if ($ct_auto) { + loop_links(); + exit 0; } elsif (-f 'links') { $linkfile = 'links'; } -else { - if ($ct_auto) { - loop_links(); - } - exit(0); -} open(my $links, '<', $linkfile) or die("Cannot open $linkfile: $!"); while (my $line = <$links>) { |