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:
parent
7a4e10bb65
commit
84b567815c
@ -23,9 +23,9 @@ do
|
|||||||
[ "`basename $f`" = "dir" ] && continue
|
[ "`basename $f`" = "dir" ] && continue
|
||||||
|
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.Z) gunzip $f; b=`echo $f | sed -e 's/\.Z$//'`;;
|
*.Z) gunzip -f $f; b=`echo $f | sed -e 's/\.Z$//'`;;
|
||||||
*.gz) gunzip $f; b=`echo $f | sed -e 's/\.gz$//'`;;
|
*.gz) gunzip -f $f; b=`echo $f | sed -e 's/\.gz$//'`;;
|
||||||
*.bz2) bunzip2 $f; b=`echo $f | sed -e 's/\.bz2$//'`;;
|
*.bz2) bunzip2 -f $f; b=`echo $f | sed -e 's/\.bz2$//'`;;
|
||||||
*) b=$f;;
|
*) b=$f;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user