more exact ANDROID_ROOT

This commit is contained in:
AJ ONeal 2017-11-06 18:01:40 -07:00
parent 33c54149c0
commit b332b1fc89
1 changed files with 1 additions and 1 deletions

View File

@ -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