Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bash-path

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bash-path - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

index.js

@@ -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 @@

2

package.json
{
"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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc