Commit 66e13eff authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-sh-functions: docmd/sudorun: use eval to handle env

parent 503842f4
......@@ -133,8 +133,7 @@ showcmd()
docmd()
{
showcmd "$*$EXTRA_SHOWDOCMD"
#FIXME
$@
eval "$@"
}
# Run every arg with docmd
......@@ -154,7 +153,7 @@ sudorun()
{
set_sudo
if [ -z "$SUDO" ] ; then
$@
eval "$@"
return
fi
$SUDO "$@"
......
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