xsh 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/env-path.js +1 -1
  2. package/package.json +1 -1
package/lib/env-path.js CHANGED
@@ -37,7 +37,7 @@ function addToFront(p, env) {
37
37
 
38
38
  let update = env[envKey] || "";
39
39
 
40
- if (typeof p === "string" && p && update.indexOf(p) !== 0) {
40
+ if (typeof p === "string" && p) {
41
41
  update = update.trim();
42
42
  const paths = update.split(pathDelim).filter(x => x && x !== p);
43
43
  paths.unshift(p);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xsh",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Some random NodeJS helper functions for shell execution",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {