Commit 9d67aa27 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-sh-functions: sudo -- don't allow vars, revert to just sudo

parent 3c1f151e
......@@ -372,9 +372,11 @@ set_sudo()
fi
SUDO_TESTED="0"
SUDO="$SUDO_CMD --"
# FIXME: does not work: sudo -- VARIABLE=some command
SUDO="$SUDO_CMD"
#SUDO="$SUDO_CMD --"
# check for < 1.7 version which do not support -- (and --help possible too)
$SUDO_CMD -h 2>/dev/null | grep -q " --" || SUDO="$SUDO_CMD"
#$SUDO_CMD -h 2>/dev/null | grep -q " --" || SUDO="$SUDO_CMD"
}
......
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