allow ANDROID_ROOT to be undefined
This commit is contained in:
parent
b562d6dd3b
commit
f2a8c2fc49
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# 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=""
|
||||||
((EUID)) && [[ -z "$ANDROID_ROOT" ]] && sudo_cmd="sudo"
|
((EUID)) && [[ -z "${ANDROID_ROOT:-}" ]] && sudo_cmd="sudo"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -u
|
set -u
|
||||||
|
|
Loading…
Reference in New Issue