mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
区分原生termux和termux中安装的Linux发行版 (#1498)
检测termux时只看环境变量,以便于区分原生termux和termux中安装的Linux发行版 测试发现${ANDROID_RUNTIME_ROOT}${ANDROID_ROOT}在termux中安装的Linux发行版中仍旧存在,但是发行版中应该不用设置软连接吧
This commit is contained in:
parent
57e7d756cb
commit
0dadd4e6cc
|
@ -98,7 +98,7 @@ make_dir() {
|
|||
}
|
||||
|
||||
detect_termux() {
|
||||
if [[ ${ANDROID_RUNTIME_ROOT}${ANDROID_ROOT} ]] || [[ $PATH == *com.termux* ]]; then
|
||||
if [[ $PATH == *com.termux* ]]; then
|
||||
is_termux=1
|
||||
else
|
||||
is_termux=0
|
||||
|
|
Loading…
Reference in New Issue
Block a user