[email protected] wrote:
> z*.tar.xz)  dir=$(tar tJf "$archive" | grep / | head -n 1) ; tar xJf 
> "$archive"  ;;

Why not simply rip out all the file-type args entirely?

dir=$(tar -tf "$archive" | grep / | head -n 1) ; tar -xf "$archive" ;;

Then it doesn't have to care.

Alternately, don't try to automate the extraction of the package, since
(especially beyond-BLFS) there are packages that require manual poking
around in their source tree before it's possible to know how to install
them...  ;-)

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://linuxfromscratch.org/mailman/listinfo/hints
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to