Commit 520b363c authored by Vitaly Lipatov's avatar Vitaly Lipatov

set_sudo: check sudo twice

parent 6b84f555
...@@ -434,6 +434,8 @@ set_sudo() ...@@ -434,6 +434,8 @@ set_sudo()
fi fi
else else
# use sudo if one is tuned and tuned without password # use sudo if one is tuned and tuned without password
# hack: check twice
$SUDO_CMD -l -n >/dev/null 2>/dev/null
if ! $SUDO_CMD -l -n >/dev/null 2>/dev/null ; then if ! $SUDO_CMD -l -n >/dev/null 2>/dev/null ; then
[ "$nofail" = "nofail" ] || SUDO="fatal 'Can't use sudo (only passwordless sudo is supported here). Please run epm under root or check http://altlinux.org/sudo '" [ "$nofail" = "nofail" ] || SUDO="fatal 'Can't use sudo (only passwordless sudo is supported here). Please run epm under root or check http://altlinux.org/sudo '"
SUDO_TESTED="4" SUDO_TESTED="4"
......
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