Skip to content

Commit

Permalink
fix arg check for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
campersau committed Feb 28, 2020
1 parent 4147fd0 commit f5c6d9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ We are following the [Keep a Changelog](https://keepachangelog.com/) format.

### Fixed
- Bump dependencies [#1283](https://github.com/FredrikNoren/ungit/pull/1283)
- Running npm scripts on macOS [#1287](https://github.com/FredrikNoren/ungit/pull/1287)

## [1.5.4](https://github.com/FredrikNoren/ungit/compare/v1.5.3...v1.5.4)

Expand Down
2 changes: 1 addition & 1 deletion source/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const argvConfig = argv.argv;

// For testing, $0 is grunt. For credential-parser test, $0 is node
// When ungit is started normally, $0 == ungit, and non-hyphenated options exists, show help and exit.
if (argvConfig.$0.indexOf('ungit') > -1 && argvConfig._ && argvConfig._.length > 0) {
if (argvConfig.$0.endsWith('ungit') && argvConfig._ && argvConfig._.length > 0) {
yargs.showHelp();
process.exit(0);
}
Expand Down

0 comments on commit f5c6d9a

Please sign in to comment.