summaryrefslogtreecommitdiff
path: root/bin/checklinks
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-01-27 21:10:47 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-01-27 21:10:47 +0100
commit3e96241318cd5dcef69bf00a43be14bf58a72097 (patch)
tree38f1d99aaa2d7197d39d8d38196aca6e69a52ecd /bin/checklinks
parent615c3993283d91e453b4cfdada1ace09a780ed81 (diff)
checklinks: Update docs, remove allcaps status messages
Diffstat (limited to 'bin/checklinks')
-rwxr-xr-xbin/checklinks14
1 files changed, 5 insertions, 9 deletions
diff --git a/bin/checklinks b/bin/checklinks
index 78318d2..68700d9 100755
--- a/bin/checklinks
+++ b/bin/checklinks
@@ -82,7 +82,7 @@ sub check_symlink {
print_format('absolute', $src, $dst, 'yellow', 0);
}
elsif (not -l "$base/$src" and -e "$base/$src") {
- print_format('EXISTS', $src, $dst, 'bold red', 2);
+ print_format('exists', $src, $dst, 'bold red', 2);
}
elsif (-l "$base/$src") {
unlink("$base/$src");
@@ -237,13 +237,13 @@ and replaced with a link to the target
The link did not exist and has been created
-=item EXISTS (soft links only)
+=item exists (soft links only)
The source already exists, but is not a symlink
-=item no dest
+=item no dest (hard links only)
-The link destination does not exist
+The link destination does not exist and therefore cannot be hardlinked to
=back
@@ -289,8 +289,4 @@ Example:
=head1 DIAGNOSTICS
The exit value is the number of files with grave errors
-(a status of "EXISTS" or "no dst").
-
-=head1 BUGS
-
-There are no checks whether the symlink target actually exists.
+(a status of "exists" or "no dest").