Updating shelljs to 0.2.6. Copy now preserves mode bits.

This commit is contained in:
Braden Shepherdson
2013-10-23 15:22:36 -04:00
parent 28c41294bb
commit 001570e941
35 changed files with 2105 additions and 1888 deletions
+19
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;