Commit f4c5aa48 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix sudorun

parent 8d50595f
......@@ -139,7 +139,11 @@ docmd_foreach()
sudorun()
{
set_sudo
[ -n "$SUDO" ] && $SUDO "$@" || "$@"
if [ -z "$SUDO" ] ; then
"$@"
return
fi
$SUDO "$@"
}
# Print command line and run command line with 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