mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(package) jaguar v3.0.0
This commit is contained in:
parent
9e11f02a45
commit
ea8743fa99
3 changed files with 51 additions and 59 deletions
|
|
@ -262,7 +262,6 @@ function extract(from, to, fn) {
|
|||
}
|
||||
|
||||
function operation(op, from, to, names, fn) {
|
||||
var wasError;
|
||||
var packer;
|
||||
|
||||
if (!fn) {
|
||||
|
|
@ -275,7 +274,6 @@ function operation(op, from, to, names, fn) {
|
|||
packer = jaguar[op](from, to, names);
|
||||
|
||||
packer.on('error', function(error) {
|
||||
wasError = true;
|
||||
fn(error);
|
||||
});
|
||||
|
||||
|
|
@ -288,15 +286,12 @@ function operation(op, from, to, names, fn) {
|
|||
});
|
||||
|
||||
packer.on('end', function() {
|
||||
var name, msg;
|
||||
|
||||
process.stdout.write('\n');
|
||||
|
||||
if (!wasError) {
|
||||
name = path.basename(from);
|
||||
msg = formatMsg(op, name);
|
||||
fn(null, msg);
|
||||
}
|
||||
var name = path.basename(from);
|
||||
var msg = formatMsg(op, name);
|
||||
|
||||
fn(null, msg);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue