Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-15431] Fixed bug where 'ti sdk install -b master --no-prompt' wou... #61

Merged
merged 1 commit into from
Oct 12, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 5 additions & 13 deletions lib/commands/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ SdkSubcommands.select = {
}
} else if (!config.cli.prompt) {
// no version supplied, no prompting, show error and exit
logger.error(__('No SDK version supplied') + '\n');
logger.error(__('No SDK version specified') + '\n');
logger.log(__('Usage: %s', (cli.argv.$ + ' sdk select <version>').cyan) + '\n');
process.exit(1);
}
Expand Down Expand Up @@ -712,18 +712,10 @@ SdkSubcommands.install = {
doReleases(next);
}
}
} else if (branch) {
doBranch(version, next);
} else {
if (!config.cli.prompt) {
logger.error(__('No version specified') + '\n');
logger.log(__('Usage: %s', (cli.argv.$ + ' sdk install <version>').cyan) + '\n');
process.exit(1);
}

if (branch) {
doBranch(version, next);
} else {
doReleases(next);
}
doReleases(next);
}
}
], function (err, data) {
Expand Down Expand Up @@ -807,7 +799,7 @@ SdkSubcommands.uninstall = {
// if they didn't specify a version and prompting is disabled, then exit
if (!version) {
if (!config.cli.prompt) {
logger.error(__('No version specified') + '\n');
logger.error(__('No SDK version specified') + '\n');
logger.log(__('Usage: %s', (cli.argv.$ + ' sdk uninstall <version>').cyan) + '\n');
process.exit(1);
}
Expand Down