xl1 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bash1/index.js +1 -1
- package/package.json +1 -1
package/dist/bash1/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
#! /usr/bin/env node
|
2
|
-
"use strict";var _chunkNEJSZOZXjs = require('../chunk-NEJSZOZX.js');var l=_chunkNEJSZOZXjs.a.call(void 0, "fs"),{spawn:
|
2
|
+
"use strict";var _chunkNEJSZOZXjs = require('../chunk-NEJSZOZX.js');var l=_chunkNEJSZOZXjs.a.call(void 0, "fs"),h=_chunkNEJSZOZXjs.a.call(void 0, "path"),{spawn:a}=_chunkNEJSZOZXjs.a.call(void 0, "child_process");(()=>{let u=e=>{let o={};for(let s=0;s<e.length;s++)if(e[s].startsWith("-")){let p=e[s].replace(/^-+/,""),n=e[s+1]&&!e[s+1].startsWith("-")?e[s+1]:!0;o[p]=n,typeof n!="boolean"&&s++}else o._||(o._=[]),o._.push(e[s]);return o},[f,d,r,...c]=process.argv,i=process.env.BASH1||(process.platform=="win32"?["C:\\Windows\\System32\\bash.exe",h.join(process.env.USERPROFILE,"scoop\\apps\\git\\current\\bin\\bash.exe")].find(e=>l.existsSync(e)):"");r&&a(r,c,{stdio:"inherit",shell:i||!0,cwd:process.cwd()}).on("error",o=>{console.error(o.message)})})();
|