mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Fix sudo check in case it is aliased
This commit is contained in:
parent
70edcdbfa0
commit
0eb766e797
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue