Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e17d624
Don't attempt to copy fifos.
bruce-one May 31, 2017
52c412f
Avoid fifos via symlinks.
bruce-one May 31, 2017
e4a911d
Better replicate cp during direct fifo copies.
bruce-one May 31, 2017
eaaa40a
Bugfix: don't break offset during copies.
bruce-one May 31, 2017
476d4b4
Test fix, use printf for osx not echo.
bruce-one Jun 1, 2017
c71edc2
Check exec exit code to fix tests on Windows.
bruce-one Jun 2, 2017
d469212
Skip fifo tests on Windows.
bruce-one Jun 2, 2017
5689dc0
Typo.
bruce-one Jun 2, 2017
777fe04
Shell out to create fifos during recursive copy.
bruce-one Jun 19, 2017
8fa217b
Handle "recursive" flag for special non-files.
bruce-one Jun 19, 2017
18c513e
Cleanup.
bruce-one Jun 19, 2017
be93375
Error messages.
bruce-one Jun 19, 2017
599a2c5
mknod fails without root.
bruce-one Jun 19, 2017
2d3af53
Linting.
bruce-one Jun 19, 2017
d942f3f
Permissions on special files.
bruce-one Jun 19, 2017
fad43aa
Logging.
bruce-one Jun 19, 2017
e6760bb
Lint.
bruce-one Jun 19, 2017
045c290
chown and chmod special files.
bruce-one Jun 19, 2017
40518f7
Use execFileSync for safety and simplicity.
bruce-one Jun 20, 2017
c69ddc3
Use mkfifo for fifo creation due for OSX compat.
bruce-one Jun 20, 2017
b2932cf
Replace unix specific code with warning.
bruce-one Jun 21, 2017
6a4a6a0
Log that special files were skipped.
bruce-one Jun 22, 2017
f7957bf
Revert "Log that special files were skipped."
bruce-one Jun 22, 2017
a4e5411
Doc.
bruce-one Jun 22, 2017
117894c
Treat special files the same whether recursive or not.
bruce-one Jun 22, 2017
48a0198
Doc.
bruce-one Jun 22, 2017
0d70322
Build doc.
bruce-one Jun 22, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Log that special files were skipped."
This reverts commit 6a4a6a0.
  • Loading branch information
bruce-one committed Jun 22, 2017
commit f7957bffa21fb2afc3b41494573ba8c932303337
22 changes: 0 additions & 22 deletions src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,28 +84,6 @@ function log() {
}
exports.log = log;

var _logLater = [];
// facilate logging informational messages at the end of a command
function logLater(message) {
if (!_logLater.length) {
// only logs if outputLaterLog hasn't been called
process.on('exit', outputLaterLog);
}
if (_logLater.indexOf(message) === -1) {
_logLater = _logLater.concat(message);
}
}
exports.logLater = logLater;

function outputLaterLog() {
_logLater.forEach(function (m) {
log(m);
});
_logLater = [];
process.removeListener('exit', outputLaterLog);
}
exports.outputLaterLog = outputLaterLog;

// Converts strings to be equivalent across all platforms. Primarily responsible
// for making sure we use '/' instead of '\' as path separators, but this may be
// expanded in the future if necessary
Expand Down
2 changes: 0 additions & 2 deletions src/cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ function copyFileSync(srcFile, destFile, options) {
if (srcFileStat.isCharacterDevice()) type = 'block device';
if (srcFileStat.isBlockDevice()) type = 'character device';
common.error('copyFileSync: ' + type + ' is not supported (' + srcFile + ')', { continue: true });
common.logLater('copyFileSync: Special files were encountered during this operation. Please investigate shelljs plugins if you would like to add support for these.');
} else {
var buf = common.buffer();
var bufLength = buf.length;
Expand Down Expand Up @@ -309,7 +308,6 @@ function _cp(options, sources, dest) {
}
}); // forEach(src)

common.outputLaterLog();
return new common.ShellString('', common.state.error, common.state.errorCode);
}
module.exports = _cp;