diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-10 14:29:13 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-10 14:29:13 +0200 |
commit | c0bcbda3d5536650fff9fdca5b4a9f3ec20ba288 (patch) | |
tree | 7155435e9f185f8ee84264c30fc7f762b9a6e4d5 | |
parent | f50bfd267810b1a5c3f4fcbe0aef5378c6cc6922 (diff) |
checklinks: better error messages, removed commented out relicts
-rwxr-xr-x | bin/checklinks | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/checklinks b/bin/checklinks index 1ac0953..4cb1200 100755 --- a/bin/checklinks +++ b/bin/checklinks @@ -27,7 +27,7 @@ GetOptions( 'p|parameter=s' => \%substitute, ); -open(LINKS, '<', $linkfile) or die($!); +open(LINKS, '<', $linkfile) or die("Can't open $linkfile: $!"); while(<LINKS>) { chomp; foreach my $key (keys(%substitute)) { @@ -59,9 +59,6 @@ sub check_symlink { my $dst = shift; mkdirs($src); - #if (not -e "$base/$dst") { - # print_format('no dst!!', $src, $dst, 'red bold'); - #} if (not -l "$base/$src" and not -e "$base/$src") { symlink($dst, "$base/$src"); print_format('created', $src, $dst, 'cyan'); |