src/utils.js
function exec(cmd, verbose) {
  verbose = verbose === false ? verbose : true;

  const stdout = execSync(cmd);
  if (verbose) {
    console.log(stdout.toString());
  }
  return stdout;
}
function exec(cmd, verbose) {
  verbose = verbose === false ? verbose : true;

  const stdout = execSync(cmd);
  if (verbose) {
    console.log(stdout.toString());
  }
  return stdout;
}
Executes shell commands synchronously and logs the
stdout to console.
@param {String} cmd  Bash command
@param {Boolean} [verbose=true] whether to post stdout to console
@return {Buffer} The command's stdout in for of Buffer