mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2024-11-05 09:59:20 +08:00
heroku jni error patch
This commit is contained in:
parent
45c6825fc5
commit
a48da6a46f
@ -11,11 +11,11 @@ function javaversion(callback) {
|
||||
data = data.toString().split('\n')[0];
|
||||
var javaVersion = new RegExp('java version').test(data) ? data.split(' ')[2].replace(/"/g, '') : false;
|
||||
var openJDKVersion = new RegExp('openjdk version').test(data) ? data.split(' ')[2].replace(/"/g, '') : false;
|
||||
if (javaVersion || openJDKVersion) {
|
||||
// if (javaVersion || openJDKVersion) {
|
||||
spawn.removeAllListeners();
|
||||
spawn.stderr.removeAllListeners();
|
||||
return callback(null, javaVersion);
|
||||
} else return callback("Java Not Installed", undefined);
|
||||
return callback(null, "javaVersion"); // Dirty fix to work with both heroku and vps ( in essence bypasses java check)
|
||||
// } else return callback("Java Not Installed", undefined);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user