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...
|
# Not every platform has or needs sudo, gotta save them O(1)s...
|
||||||
sudo_cmd=""
|
sudo_cmd=""
|
||||||
if [ type -p sudo ]; then
|
if [ type -p sudo ]; then
|
||||||
((EUID)) && [[ -z "$ANDROID_ROOT" ]] && sudo_cmd="sudo"
|
((EUID)) && [[ -z "${ANDROID_ROOT-}" ]] && sudo_cmd="sudo"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue