Skip to content

Commit

Permalink
Merge pull request #1287 from campersau/args_macos
Browse files Browse the repository at this point in the history
Fix argument check for macOS
  • Loading branch information
campersau authored Feb 29, 2020
2 parents 4147fd0 + f5c6d9a commit 642c9af
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 642c9af

Please sign in to comment.