Fix Ed tarball unpacking
This commit is contained in:
parent
67723e1682
commit
6eaae5e34c
1 changed files with 5 additions and 1 deletions
|
@ -106,7 +106,11 @@ find . -maxdepth 1 -mindepth 1 -type d | xargs </xsl:text>
|
||||||
case $PACKAGE in
|
case $PACKAGE in
|
||||||
*.tar.gz|*.tar.bz2|*.tar.xz|*.tgz|*.tar.lzma)
|
*.tar.gz|*.tar.bz2|*.tar.xz|*.tgz|*.tar.lzma)
|
||||||
tar -xvf $PACKAGE > unpacked
|
tar -xvf $PACKAGE > unpacked
|
||||||
UNPACKDIR=`grep '[^./]\+' unpacked | head -n1 | sed 's@^./@@;s@/.*@@'`
|
UNPACKDIR=`grep '[^./]\+' unpacked | head -n1 | sed 's@^\./@@;s@/.*@@'`
|
||||||
|
;;
|
||||||
|
*.tar.lz)
|
||||||
|
bsdtar -xvf $PACKAGE 2> unpacked
|
||||||
|
UNPACKDIR=`head -n1 unpacked | cut -d" " -f2 | sed 's@^\./@@;s@/.*@@'`
|
||||||
;;
|
;;
|
||||||
*.zip)
|
*.zip)
|
||||||
zipinfo -1 $PACKAGE > unpacked
|
zipinfo -1 $PACKAGE > unpacked
|
||||||
|
|
Reference in a new issue