add "-f" (--force) to gunzip and bunzip2 for corner cases so that rpmbuild

doesn't interactively ask to overwrite when it doesn't need to
This commit is contained in:
Adrian Havill 2004-10-15 21:02:36 +00:00
parent 7a4e10bb65
commit 84b567815c

View File

@ -23,9 +23,9 @@ do
[ "`basename $f`" = "dir" ] && continue
case "$f" in
*.Z) gunzip $f; b=`echo $f | sed -e 's/\.Z$//'`;;
*.gz) gunzip $f; b=`echo $f | sed -e 's/\.gz$//'`;;
*.bz2) bunzip2 $f; b=`echo $f | sed -e 's/\.bz2$//'`;;
*.Z) gunzip -f $f; b=`echo $f | sed -e 's/\.Z$//'`;;
*.gz) gunzip -f $f; b=`echo $f | sed -e 's/\.gz$//'`;;
*.bz2) bunzip2 -f $f; b=`echo $f | sed -e 's/\.bz2$//'`;;
*) b=$f;;
esac