Commit 1ee061b6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

do not require 7zip

parent 49102d0f
...@@ -161,10 +161,12 @@ function get_zip() ...@@ -161,10 +161,12 @@ function get_zip()
# TODO: use external converter # TODO: use external converter
function get_7z() function get_7z()
{ {
BIN7ZIP=/usr/bin/7z
test -x $BIN7ZIP || return $?
get_archive 7z || return $? get_archive 7z || return $?
mkdir $WEXT.7z.dir || return $? mkdir $WEXT.7z.dir || return $?
cd $WEXT.7z.dir cd $WEXT.7z.dir
7z x ../$WEXT.7z && tar cf ../$WEXT.tar . || return $BIN7ZIP x ../$WEXT.7z && tar cf ../$WEXT.tar . || return
cd .. cd ..
rm -rf $WEXT.7z.dir rm -rf $WEXT.7z.dir
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment