Commit b5ecc696 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: fix embedded mode

parent adf6c623
......@@ -45,16 +45,18 @@ info()
eget()
{
if [ -n "$PROGNAME" ] ; then
if [ -n "$EPMMODE" ] ; then
# if embedded in epm
(unset EGET_IPFS_GATEWAY; unset EGET_IPFS_API ; unset EGET_IPFS_DB ; internal_eget "$@" )
return
fi
local bashopt=''
#[ -n "$verbose" ] && bashopt='-x'
[ -n "$PROGNAME" ] || fatal "pipe mode is not supported"
(unset EGET_IPFS_GATEWAY; unset EGET_IPFS_API ; unset EGET_IPFS_DB ; $CMDSHELL $bashopt $PROGDIR/$PROGNAME "$@" )
else
#epm_main --inscript "$@"
fatal "Improve me"
fi
local bashopt=''
#[ -n "$verbose" ] && bashopt='-x'
(unset EGET_IPFS_GATEWAY; unset EGET_IPFS_API ; unset EGET_IPFS_DB ; $CMDSHELL $bashopt $PROGDIR/$PROGNAME "$@" )
}
# TODO:
......
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