From 85a0d8034ec4233a0b08d6075f3948459e557a3a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 12 Jul 2014 17:10:40 +0200 Subject: [PATCH] hooks/uncompress-manpages: make it less verbose. --- common/hooks/post-install/00-uncompress-manpages.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 }