packitup 0.1.1 → 0.1.2
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.
- package/README.md +0 -2
- package/install.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/install.js
CHANGED
|
@@ -4,7 +4,7 @@ require.main === module && (() => {
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const fs = require('fs');
|
|
6
6
|
const process = require('process');
|
|
7
|
-
const pathDir = process.env.PATH.split(path.delimiter)
|
|
7
|
+
const pathDir = process.env.PATH.split(path.delimiter).find(pth => !pth.includes('/.bin'));
|
|
8
8
|
if (!pathDir) throw new Error('Your command catalog has been stolen.');
|
|
9
9
|
const packitup = fs.readFileSync('./dist/packitup.js', 'utf8');
|
|
10
10
|
const shebang = '#!/usr/bin/env node';
|