Fix sudo check in case it is aliased

This commit is contained in:
Joost Cassee 2013-05-18 00:01:45 +02:00
commit 0eb766e797

View file

@ -16,7 +16,7 @@ else
fi
# Use sudo by default if it's installed
if [[ -e $( which sudo 2>&1 ) ]]; then
if [[ -e $( command which sudo 2>&1 ) ]]; then
use_sudo=1
fi