diff --git a/CHANGELOG.md b/CHANGELOG.md index 48bbe1162..e41a0e666 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/source/config.js b/source/config.js index 4689541d5..a6382fa48 100644 --- a/source/config.js +++ b/source/config.js @@ -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); }