@cerema/cadriciel 1.4.12 → 1.4.13

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.
@@ -24,7 +24,7 @@ module.exports = (args) => {
24
24
  }
25
25
 
26
26
  const checkIfCommandExists = (command, callback) => {
27
- const proc = spawn('which', [command]);
27
+ const proc = spawn('which', [command], { shell: true });
28
28
 
29
29
  let found = false;
30
30
  proc.stdout.on('data', (data) => {
@@ -47,7 +47,7 @@ module.exports = (args) => {
47
47
  const image = images[ndx];
48
48
 
49
49
  const response = ora(`Téléchargement de l'image: ${image}`).start();
50
- const dockerPull = spawn('docker', ['pull', image]);
50
+ const dockerPull = spawn('docker', ['pull', image], { shell: true });
51
51
 
52
52
  dockerPull.stdout.on('data', (data) => {
53
53
  //console.log(data.toString().trim());
package/cli.js CHANGED
@@ -25,7 +25,9 @@ try {
25
25
  const checkVersion = async () => {
26
26
  return new Promise((resolve, reject) => {
27
27
  const packageName = '@cerema/cadriciel';
28
- const child = spawn('npm', ['view', packageName, 'version']);
28
+ const child = spawn('npm', ['view', packageName, 'version'], {
29
+ shell: true,
30
+ });
29
31
 
30
32
  let version = '';
31
33
 
@@ -245,6 +247,7 @@ const processCommands = (args) => {
245
247
 
246
248
  const child = spawn(cmd, fullArgs, {
247
249
  stdio: 'inherit',
250
+ shell: true,
248
251
  });
249
252
 
250
253
  child.on('close', (code) => {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerema/cadriciel",
3
- "version": "1.4.12",
3
+ "version": "1.4.13",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "npm": ">=8.0.0",