Skip to content

Commit

Permalink
Merge pull request #376 from Icenium/totev/fix-deploy
Browse files Browse the repository at this point in the history
Fix platform check to work with optional command-line arguments
  • Loading branch information
teobugslayer committed Jul 31, 2014
2 parents 881676e + 86b8dcc commit f49059a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class DeployCommand implements ICommand {
if (!this.$project.capabilities.deploy) {
this.$errors.fail("You will be able to deploy %s based applications in a future release of the Telerik AppBuilder CLI.", this.$project.projectData.Framework);
}
if (!MobileHelper.isPlatformSupported(args[0])) {
if (args[0] && !MobileHelper.isPlatformSupported(args[0])) {
this.$errors.fail("On your current OS, you cannot deploy apps on connected %s devices.", MobileHelper.normalizePlatformName(args[0]));
}

Expand Down

0 comments on commit f49059a

Please sign in to comment.