Skip to content

Commit 3c8c7af

Browse files
Fix compatibility with Termux (#104)
1 parent 1e3c570 commit 3c8c7af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const platformLib = (() => {
1818
}
1919

2020
case 'android': {
21-
if (process.env.PREFIX !== '/data/data/com.termux/files/usr') {
21+
if (process.env.TERMUX__PREFIX === undefined) {
2222
throw new Error('You need to install Termux for this module to work on Android: https://termux.com');
2323
}
2424

0 commit comments

Comments
 (0)