diff options
-rw-r--r-- | include/functions.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/functions.sh b/include/functions.sh index dacf936..10b8de8 100644 --- a/include/functions.sh +++ b/include/functions.sh @@ -423,14 +423,15 @@ sigtrap() { # currently we support ubuntu and android get_os() { - lsb_release -a 2>&1 | grep -i ubuntu > /dev/null - if [ $? -eq 0 ]; then + build_prop_file="\system\build.prop" + + if [ -e "$build_prop_file" ]; then # for ubuntu return 1 - else - # for android (if needed can look for build.prop) + else + # for android return 2 - fi + fi } is_root() { |