forked from olcxjas-softworks/LarpixClient
fix gitignore again
This commit is contained in:
parent
ce5a1e330b
commit
5da5c2afe2
3329 changed files with 364540 additions and 3 deletions
37
electron/node_modules/@capacitor/cli/dist/util/subprocess.js
generated
vendored
Normal file
37
electron/node_modules/@capacitor/cli/dist/util/subprocess.js
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isInstalled = exports.getCommandOutput = exports.runCommand = void 0;
|
||||
const utils_subprocess_1 = require("@ionic/utils-subprocess");
|
||||
async function runCommand(command, args, options = {}) {
|
||||
const p = new utils_subprocess_1.Subprocess(command, args, options);
|
||||
try {
|
||||
return await p.output();
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof utils_subprocess_1.SubprocessError) {
|
||||
// old behavior of just throwing the stdout/stderr strings
|
||||
throw e.output ? e.output : e.cause ? `${e.message} ${e.cause.toString()}` : e.code ? e.code : 'Unknown error';
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
exports.runCommand = runCommand;
|
||||
async function getCommandOutput(command, args, options = {}) {
|
||||
try {
|
||||
return (await runCommand(command, args, options)).trim();
|
||||
}
|
||||
catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
exports.getCommandOutput = getCommandOutput;
|
||||
async function isInstalled(command) {
|
||||
try {
|
||||
await (0, utils_subprocess_1.which)(command);
|
||||
}
|
||||
catch (e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
exports.isInstalled = isInstalled;
|
||||
Loading…
Add table
Add a link
Reference in a new issue