summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-10-05 19:26:17 +0200
committerDaniel Friesel <derf@finalrewind.org>2010-10-05 19:26:17 +0200
commit05717cd36bda800bf559e11c9911391f28f24ea0 (patch)
treed29962e841e92fb302d89fc05e6e20b38d4c40fd
parent2eb8e5269426710672d986680722ecf9737ad229 (diff)
checklinks: Remove support for .links
-rwxr-xr-xbin/checklinks11
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>) {