diff options
Diffstat (limited to 'bin/checklinks')
-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>) { |