mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: restore the env TERMUX_VERSION based final resort for runtime auto detection of Termux
This commit is contained in:
parent
bcaa3ac915
commit
02d675ab67
@ -355,6 +355,9 @@ pub fn user_os() string {
|
|||||||
$if vinix {
|
$if vinix {
|
||||||
return 'vinix'
|
return 'vinix'
|
||||||
}
|
}
|
||||||
|
if getenv('TERMUX_VERSION') != '' {
|
||||||
|
return 'termux'
|
||||||
|
}
|
||||||
return 'unknown'
|
return 'unknown'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user