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