diff --git a/src/tomb b/src/tomb index efefba9..0a4aed6 100755 --- a/src/tomb +++ b/src/tomb @@ -184,7 +184,7 @@ check_priv() { func "Using sudo for root execution of 'tomb ${(f)OLDARGS}'" # check if sudo has a timestamp active sudok=false - sudo -n ${TOMBEXEC} 2> /dev/null + sudo -n ${TOMBEXEC} &> /dev/null if [ $? != 0 ]; then # if not then ask a password cat </dev/null | awk '/^D/ { print $2 }' | sudo -S -v OPTION ttyname=$TTY