diff options
-rwxr-xr-x | compress_files | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compress_files b/compress_files index 2f43706..2550b95 100755 --- a/compress_files +++ b/compress_files @@ -180,9 +180,9 @@ while (<FIND>) { if (! -e "$directory/$linkval" && -e "$directory/$linkval.bz2") { system("rm","-f",$_); system("ln","-sf","$linkval.bz2","$_.bz2"); - } elsif (! -e "$directory/$linkval" && ! -e "$directory/linkval.bz2" ) { - #Bad link go on nowhere (any better idea) ? - unlink("$_"); + } elsif (! -e "$directory/$linkval" && ! -e "$directory/linkval.bz2" && $directory =~ m|man/|) { + #Bad link go on nowhere (any better idea) ? + unlink("$_"); } } |