more exact ANDROID_ROOT
This commit is contained in:
parent
33c54149c0
commit
b332b1fc89
|
@ -1,5 +1,5 @@
|
|||
# Not every platform has or needs sudo, gotta save them O(1)s...
|
||||
sudo_cmd=""
|
||||
if [ type -p sudo ]; then
|
||||
((EUID)) && [[ -z "$ANDROID_ROOT" ]] && sudo_cmd="sudo"
|
||||
((EUID)) && [[ -z "${ANDROID_ROOT-}" ]] && sudo_cmd="sudo"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue