Commit 2d590c2d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm(): allow use it when run with pipe

parent 7137508c
......@@ -25,7 +25,7 @@ load_helper epm-install
check_url_is_accessible()
{
local res
epm tool eget --check "$1"
eget --check "$1"
}
# update URL variable
......
......@@ -280,8 +280,12 @@ clean_store_output()
# run epm, possible from side repo
epm()
{
[ -n "$PROGNAME" ] || fatal "Can't use epm call from the piped script"
bash $PROGDIR/$PROGNAME --inscript "$@"
if [ -n "$PROGNAME" ] ; then
#|| fatal "Can't use epm call from the piped script"
bash $PROGDIR/$PROGNAME --inscript "$@"
else
epm_main --inscript "$@"
fi
}
# run $SUDO epm, possible from side repo
......
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