Skip to content

Commit e46d560

Browse files
committed
minor change
1 parent 5c5ea30 commit e46d560

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postInstall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ require('find-java-home')(function(err, home){
3030
});
3131

3232
function getCorrectSoForPlatform(soFiles){
33-
var so = getCorrectSoForPlatform(soFiles);
33+
var so = _getCorrectSoForPlatform(soFiles);
3434
return removeDuplicateJre(so);
3535
}
3636

3737
function removeDuplicateJre(filePath){
38-
while(filePath.indexOf('jre/jre')>0){
38+
while(filePath.indexOf('jre/jre')>=0){
3939
filePath = filePath.replace('jre/jre','jre');
4040
}
4141
return filePath;

0 commit comments

Comments
 (0)