1
mirror of https://github.com/actions/setup-node.git synced 2026-02-15 06:00:31 +00:00

Initial Import

This commit is contained in:
Chris Patterson
2019-08-03 21:49:54 -04:00
commit 9bb7038a07
244 changed files with 22913 additions and 0 deletions

19
node_modules/shelljs/src/cd.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
var fs = require('fs');
var common = require('./common');
//@
//@ ### cd('dir')
//@ Changes to directory `dir` for the duration of the script
function _cd(options, dir) {
if (!dir)
common.error('directory not specified');
if (!fs.existsSync(dir))
common.error('no such file or directory: ' + dir);
if (!fs.statSync(dir).isDirectory())
common.error('not a directory: ' + dir);
process.chdir(dir);
}
module.exports = _cd;