Project: titanium
Issue TIMOB-19264: If you do "ti sdk select <SDK_VERSION>", a "Failed to run command sdk" error message will appear
*Details:* If you do {{ti sdk select }}, a {{Failed to run command "sdk"}} error message will appear. *Note:* * This is a *regression* from Titanium CLI 4.0.1. * This issue will affect {{appc ti sdk select }}. * This is *not a blocker* since you are still able to select SDK via prompting; just do {{ti sdk select}} or {{appc ti sdk select}}. *Steps to reproduce:* # Run {{ti sdk select }}; being a valid SDK on your machine *Actual:* The following error will appear: {code} WilsonComputer:~ wluu$ ti sdk select 4.2.0.v20150728015233 Titanium Command-Line Interface, CLI version 4.1.2, Titanium SDK version 4.1.0.GA Copyright (c) 2012-2015, Appcelerator, Inc. All Rights Reserved. Please report bugs to http://jira.appcelerator.org/ [ERROR] Failed to run command "sdk" [ERROR] ReferenceError: value is not defined at select (/usr/local/lib/node_modules/titanium/lib/commands/sdk.js:399:25) at exports.run (/usr/local/lib/node_modules/titanium/lib/commands/sdk.js:83:29) at CLI. (/usr/local/lib/node_modules/titanium/lib/cli.js:789:5) at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:119:25 at Object. (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:24:16) at CLI._fireHookCallback (/usr/local/lib/node_modules/titanium/lib/hook.js:269:12) at /usr/local/lib/node_modules/titanium/lib/hook.js:248:10 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:232:13 at async.eachSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:130:20) at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:9) --------------------------------------------- at Object.run (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8) at find (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14) at q.process (/usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:806:21) at processImmediate (timers.js:354:15) {code} *Expected:* {{Failed to run command "sdk"}} error should not appear.
Story points: 1