ppackage 2.3.1 → 2.3.3

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 (3) hide show
  1. package/bin/askpass +1 -1
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/bin/askpass CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/node
1
+ #!/usr/bin/env node
2
2
 
3
3
  let response, [,, what] = process.argv;
4
4
  if(/Username/.test(what))
package/index.js CHANGED
@@ -163,7 +163,7 @@ class ppackage {
163
163
  await passthru("git", ["reset", "HEAD", "--", "."]);
164
164
 
165
165
  for(let line of [GITIGNORE_PATH, DOCKERIGNORE_PATH, NPMIGNORE_PATH])
166
- await passthru("git", ["restore", line]).catch(()=>{});
166
+ await passthru("git", ["checkout", "--", line]).catch(()=>{});
167
167
 
168
168
  let restore = [];
169
169
  if(fs.existsSync(DOCKERIGNORE_PATH)) {
@@ -177,7 +177,7 @@ class ppackage {
177
177
  restore = restore.map(v => v.trim()).filter(v => v && v[0] != "#");
178
178
 
179
179
  for(let line of restore)
180
- await passthru("git", ["restore", line]).catch(()=>{});
180
+ await passthru("git", ["checkout", "--", line]).catch(()=>{});
181
181
  }
182
182
 
183
183
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ppackage",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {