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