diff --git a/cmd/tools/vsymlink.v b/cmd/tools/vsymlink.v index d85f26f9c5..dafd90c56b 100644 --- a/cmd/tools/vsymlink.v +++ b/cmd/tools/vsymlink.v @@ -24,7 +24,7 @@ fn cleanup_vtmp_folder() { fn setup_symlink_unix(vexe string) { mut link_path := '/data/data/com.termux/files/usr/bin/v' - if os.system("uname -o | grep -q '[A/a]ndroid'") == 1 { + if !os.is_dir('/data/data/com.termux/files') { link_dir := '/usr/local/bin' if !os.exists(link_dir) { os.mkdir_all(link_dir) or { panic(err) }