diff --git a/common/hooks/post-install/00-uncompress-manpages.sh b/common/hooks/post-install/00-uncompress-manpages.sh index 5547e053db..00d7adff8b 100644 --- a/common/hooks/post-install/00-uncompress-manpages.sh +++ b/common/hooks/post-install/00-uncompress-manpages.sh @@ -12,16 +12,14 @@ hook() { return 0 fi - echo " Uncompressing manpages..." - # rewrite symlinks find $mandir -type l -regex '.*\.\(gz\|bz2\)' | while read f do lnkat=$(readlink "$f") - ln -vs ${lnkat%.*} ${f%.*} + ln -s ${lnkat%.*} ${f%.*} rm $f done - find $mandir -type f -name '*.gz' -exec gunzip -v {} + - find $mandir -type f -name '*.bz2' -exec bunzip2 -v {} + + find $mandir -type f -name '*.gz' -exec gunzip -v {} + &>/dev/null + find $mandir -type f -name '*.bz2' -exec bunzip2 -v {} + &>/dev/null }