Skip to content

Commit

Permalink
Merge pull request #673 from tidev/fix-invalid-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi authored Aug 1, 2024
2 parents ad5354a + b80dd9c commit 29b0287
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
7.1.3 (8/1/2024)
-------------------
* fix: Invalid `--platform` would cause crash because the platform
validation was being bypassed

7.1.2 (7/31/2024)
-------------------
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "titanium",
"version": "7.1.2",
"version": "7.1.3",
"author": "TiDev, Inc. <[email protected]>",
"description": "Command line interface for building Titanium SDK apps",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ export class CLI {
.join('\n')
}`
});
} else if (!platformOption.skipValueCheck && !platformOption.values.includes(this.argv.platform)) {
} else if (!platformOption.values.includes(this.argv.platform)) {
throw new TiError(`Invalid platform "${this.argv.$originalPlatform || this.argv.platform}"`, {
code: 'INVALID_PLATFORM'
});
Expand All @@ -670,7 +670,7 @@ export class CLI {
this.logger.banner();

if (e.code === 'INVALID_PLATFORM') {
this.logger.error(e.message);
this.logger.error(`${e.message}\n`);
}

this.argv.platform = await prompt({
Expand Down

0 comments on commit 29b0287

Please sign in to comment.