]> git.ipfire.org Git - pakfire.git/commitdiff
compress-man-pages: Drop error message when man dir does not exist.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2011 19:46:08 +0000 (20:46 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2011 19:46:08 +0000 (20:46 +0100)
scripts/compress-man-pages

index cc96b33a63604a3adcfc1a1e276656179f8d70e2..9c2c4f9010011d6f54be4fb964a290d2d33dfbdd 100755 (executable)
@@ -42,7 +42,7 @@ for file in $(find ${dir} -type f 2>/dev/null); do
        }
 done
 
-for file in $(find ${dir} -type l); do
+for file in $(find ${dir} -type l 2>/dev/null); do
        link=$(ls -l ${file} | sed -e 's/.* -> //' -e 's/\.\(gz\|Z\|bz2\|xz\|lzma\)$//')
        rm -f ${file}
        b=$(echo ${file} | sed -e 's/\.\(gz\|Z\|bz2\|xz\|lzma\)$//')