Skip to content

Commit

Permalink
Merge pull request #190 from feons/TIMOB-18138
Browse files Browse the repository at this point in the history
[TIMOB-18138] CLI: ti setup, network option, setting proxy to no doesn't clear value from config file
  • Loading branch information
skypanther committed Feb 17, 2015
2 parents fe78349 + 94283f8 commit 389ef9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/commands/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,11 @@ SetupScreens.prototype.network = function app(callback) {
})
}).prompt(function (err, data) {
if (!err) {
// reset httpProxyServer
if (data.hasProxy == 'no') {
data.httpProxyServer = "";
}

delete data.hasProxy;
this._save({ cli: data });
}
Expand Down

0 comments on commit 389ef9c

Please sign in to comment.