Skip to content

Commit 0bccb7b

Browse files
committed
Fix: wrong gradle version is parsed
1 parent 606625f commit 0bccb7b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wavemaker/wm-cordova-cli",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "command line tool to easily build a wavemaker mobile project",
55
"main": "index.js",
66
"preferGlobal": true,

src/requirements.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = {
6060
});
6161
},
6262
checkForGradleAvailability: async () => {
63-
return await checkAvailability('gradle', o => 0 && o.substrig(o.indexOf('Gradle')) );
63+
return await checkAvailability('gradle', o => o && o.substring(o.indexOf('Gradle')) );
6464
},
6565
checkForAndroidStudioAvailability: async () => {
6666
// ANDROID_HOME environment variable is set or not. If it is set checking if its a valid path or no.

0 commit comments

Comments
 (0)