summaryrefslogtreecommitdiff
path: root/bin/checklinks
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-10 14:29:13 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-10 14:29:13 +0200
commitc0bcbda3d5536650fff9fdca5b4a9f3ec20ba288 (patch)
tree7155435e9f185f8ee84264c30fc7f762b9a6e4d5 /bin/checklinks
parentf50bfd267810b1a5c3f4fcbe0aef5378c6cc6922 (diff)
checklinks: better error messages, removed commented out relicts
Diffstat (limited to 'bin/checklinks')
-rwxr-xr-xbin/checklinks5
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');