Comparing version 1.0.1 to 1.0.2
@@ -10,3 +10,3 @@ 'use strict'; | ||
function getPath() { | ||
return firstPath(envPath()); | ||
return firstPath(envPath() || 'bash'); | ||
} | ||
@@ -32,7 +32,2 @@ | ||
} | ||
if (process.platform === 'darwin') { | ||
return '/usr/local/bin/bash'; | ||
} | ||
return 'bash'; | ||
} | ||
@@ -39,0 +34,0 @@ |
{ | ||
"name": "bash-path", | ||
"description": "Get the path to the bash binary on your OS.", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"homepage": "https://github.com/micromatch/bash-path", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -7,2 +7,5 @@ 'use strict'; | ||
var paths = process.env.PATH.split(path.delimiter); | ||
if (paths.indexOf('/usr/local/bin/bash') === -1) paths.push('/usr/local/bin/bash'); | ||
if (paths.indexOf('/bin/bash') === -1) paths.push('/bin/bash'); | ||
if (paths.indexOf('bash') === -1) paths.push('bash'); | ||
if (typeof compare === 'function') { | ||
@@ -9,0 +12,0 @@ paths.sort(compare); |
@@ -1,2 +0,2 @@ | ||
# bash-path [![NPM version](https://img.shields.io/npm/v/bash-path.svg?style=flat)](https://www.npmjs.com/package/bash-path) [![NPM monthly downloads](https://img.shields.io/npm/dm/bash-path.svg?style=flat)](https://npmjs.org/package/bash-path) [![NPM total downloads](https://img.shields.io/npm/dt/bash-path.svg?style=flat)](https://npmjs.org/package/bash-path) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/bash-path.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/bash-path) [![Windows Build Status](https://img.shields.io/appveyor/ci/jonschlinkert/bash-path.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/jonschlinkert/bash-path) | ||
# bash-path [![NPM version](https://img.shields.io/npm/v/bash-path.svg?style=flat)](https://www.npmjs.com/package/bash-path) [![NPM monthly downloads](https://img.shields.io/npm/dm/bash-path.svg?style=flat)](https://npmjs.org/package/bash-path) [![NPM total downloads](https://img.shields.io/npm/dt/bash-path.svg?style=flat)](https://npmjs.org/package/bash-path) [![Linux Build Status](https://img.shields.io/travis/micromatch/bash-path.svg?style=flat&label=Travis)](https://travis-ci.org/micromatch/bash-path) [![Windows Build Status](https://img.shields.io/appveyor/ci/micromatch/bash-path.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/micromatch/bash-path) | ||
@@ -3,0 +3,0 @@ > Get the path to the bash binary on your OS. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6000
53