TheBrainFamily/chimpy

View on GitHub
scripts/lib/exec.js

Summary

Maintainability
A
0 mins
Test Coverage
var shell = require('shelljs');

module.exports = function exec(command, options) {
  if (isWindows()) {
    command = 'powershell.exe -Command "' + command + '"';
  }
  return shell.exec(command, options);
}

function isWindows() {
  return process.platform === 'win32';
}