diff options
-rwxr-xr-x | bin/checklinks | 2 | ||||
-rw-r--r-- | test/checklinks | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bin/checklinks b/bin/checklinks index 668b46d..dfa233f 100755 --- a/bin/checklinks +++ b/bin/checklinks @@ -120,7 +120,7 @@ sub mkdirs { sub print_format { my ($message, $src, $dst, $color, $level) = @_; - if ($msglevel > 1) { + if ($level > 1) { $exit++; } diff --git a/test/checklinks b/test/checklinks index ce5c133..81a75e2 100644 --- a/test/checklinks +++ b/test/checklinks @@ -27,3 +27,8 @@ checklinks --remove [[ -e file ]] [[ ! -e blub ]] [[ -e flurbl ]] + +echo "# checklinks: link source exists already" +echo exists > link +! checklinks +[[ $(cat link) == exists ]] |