allow ANDROID_ROOT to be undefined

This commit is contained in:
AJ ONeal 2018-06-26 05:54:06 +00:00
parent b562d6dd3b
commit f2a8c2fc49
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# Not every platform has or needs sudo, gotta save them O(1)s...
sudo_cmd=""
((EUID)) && [[ -z "$ANDROID_ROOT" ]] && sudo_cmd="sudo"
((EUID)) && [[ -z "${ANDROID_ROOT:-}" ]] && sudo_cmd="sudo"
set -e
set -u