@team-supercharge/oasg 13.2.0-feature-csharp-functions-c3d21a55.0 → 13.2.0-feature-csharp-functions-1ae9e5ab.0

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/exec.js +2 -3
  2. package/bin/oasg +3 -3
  3. package/package.json +1 -1
package/bin/exec.js CHANGED
@@ -3,9 +3,8 @@ const { execSync } = require('child_process');
3
3
 
4
4
  function exec(command, stdio) {
5
5
  try {
6
- execSync(command, { stdio: stdio || 'inherit' });
7
- }
8
- catch (e) {
6
+ execSync(`bash -e -c "${command}"`, { stdio: stdio || 'inherit' });
7
+ } catch (e) {
9
8
  console.error(e.message);
10
9
  exit(1);
11
10
  }
package/bin/oasg CHANGED
@@ -549,9 +549,9 @@ function fetchBinary(target) {
549
549
 
550
550
  // download binary
551
551
  console.log(`... downloading ${binary.url} ==> ${binaryPath}`);
552
- exec(`bash -e -c "mkdir -p ${BIN_FOLDER}"`);
553
- exec(`bash -e -c "wget ${binary.url} -q -O ${binaryPath}"`);
554
- exec(`bash -e -c "chmod +x ${binaryPath}"`);
552
+ exec(`mkdir -p ${BIN_FOLDER}`);
553
+ exec(`wget ${binary.url} -q -O ${binaryPath}`);
554
+ exec(`chmod +x ${binaryPath}`);
555
555
  return binaryPath;
556
556
  }
557
557
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-supercharge/oasg",
3
- "version": "13.2.0-feature-csharp-functions-c3d21a55.0",
3
+ "version": "13.2.0-feature-csharp-functions-1ae9e5ab.0",
4
4
  "description": "Node-based tool to lint OpenAPI documents and generate clients, servers and documentation from them",
5
5
  "author": "Supercharge",
6
6
  "license": "MIT",