Commit e72e45e6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-sh-functions: always use internal tools_eget

parent a855c33d
...@@ -390,9 +390,10 @@ __set_EGET() ...@@ -390,9 +390,10 @@ __set_EGET()
export EGET="$SHAREDIR/tools_eget" export EGET="$SHAREDIR/tools_eget"
return return
fi fi
fatal "Internal error: missed tools_eget"
# FIXME: we need disable output here, eget can be used for get output # FIXME: we need disable output here, eget can be used for get output
assure_exists eget >/dev/null assure_exists eget eget 3.3 >/dev/null
# use external command, not the function # use external command, not the function
export EGET="$(which eget)" || fatal "Missed command eget from installed package eget" export EGET="$(which eget)" || fatal "Missed command eget from installed package eget"
} }
...@@ -406,9 +407,10 @@ eget() ...@@ -406,9 +407,10 @@ eget()
$SHAREDIR/tools_eget "$@" $SHAREDIR/tools_eget "$@"
return return
fi fi
fatal "Internal error: missed tools_eget"
# FIXME: we need disable output here, eget can be used for get output # FIXME: we need disable output here, eget can be used for get output
assure_exists eget >/dev/null assure_exists eget eget 3.3 >/dev/null
# run external command, not the function # run external command, not the function
EGET=$(which eget) || fatal "Missed command eget from installed package eget" EGET=$(which eget) || fatal "Missed command eget from installed package eget"
$EGET "$@" $EGET "$@"
......
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