Commit 30c97a83 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-sh-functions: move 7zip checking to __epm_assure_7zip()

parent fe3fc7f1
...@@ -612,16 +612,22 @@ eget() ...@@ -612,16 +612,22 @@ eget()
$EGET "$@" $EGET "$@"
} }
# will replaced within disabled_erc in packaged version
erc()
{
__epm_assure_7zip()
{
# install 7zip in any case (can be used) # install 7zip in any case (can be used)
if is_command 7z || is_command 7za || is_command 7zr || is_command 7zz ; then if is_command 7z || is_command 7za || is_command 7zr || is_command 7zz ; then
: :
else else
epm install p7zip epm install p7zip
fi fi
}
# will replaced within disabled_erc in packaged version
erc()
{
__epm_assure_7zip()
# use internal eget only if exists # use internal eget only if exists
if [ -s $SHAREDIR/tools_erc ] ; then if [ -s $SHAREDIR/tools_erc ] ; then
......
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