Skip to content

Commit

Permalink
fix(openshift): fix processing of rhc app show output
Browse files Browse the repository at this point in the history
rhc returns the following text when application is not found

$ rhc app show test
Application 'test' not found.
  • Loading branch information
velichkov committed Nov 26, 2014
1 parent b986998 commit dedf46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openshift/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Generator.prototype.rhcAppShow = function rhcAppShow() {
this.abort = true;
}
// No remote found
else if (stdout.search('not found.') < 0) {
else if (stdout.search('not found.') >= 0) {
console.log('No existing app found.');
}
// Error
Expand Down

0 comments on commit dedf46c

Please sign in to comment.