release.js
function writeScript (name, cmds) {
    fs.writeFileSync(name, '#!/usr/bin/env bash\n\n' + cmds.join('\n'));
    exec('chmod +x ' + name);
  }
function writeScript (name, cmds) {
    fs.writeFileSync(name, '#!/usr/bin/env bash\n\n' + cmds.join('\n'));
    exec('chmod +x ' + name);
  }
function writeScript ( name , cmds ) { fs . writeFileSync ( name , '#!/usr/bin/env bash\n\n' + cmds . join ( '\n' ) ) ; exec ( 'chmod +x ' + name ) ; }
writes an array of commands to a bash script
writes an array of commands to a bash script