when unpacking tar files.
svn path=/main/trunk/; revision=15820
_unpack_tar() {
if [ "${y}" == "tar" ]; then
- $1 -dc "$srcdir$x" | tar xof -
- assert "$myfail"
+ $1 -dc "$srcdir$x" | tar xof - || die "$myfail"
else
$1 -dc "${srcdir}${x}" > ${x%.*} || die "$myfail"
fi
tar xozf "$srcdir$x" || die "$myfail"
;;
tbz|tbz2)
- bzip2 -dc "$srcdir$x" | tar xof -
- assert "$myfail"
+ bzip2 -dc "$srcdir$x" | tar xof - || die "$myfail"
;;
ZIP|zip|jar)
unzip -qo "${srcdir}${x}" || die "$myfail"