Updates
This commit is contained in:
Vendored
+8
-3
@@ -98,7 +98,7 @@ function watchFolders(_a) {
|
||||
});
|
||||
}
|
||||
function sync({ options, dirs, dirPath, init }) {
|
||||
var _a;
|
||||
var _a, _b;
|
||||
const dstDirs = dirs.filter((dr) => {
|
||||
if (typeof dr == "string")
|
||||
return dr !== dirPath;
|
||||
@@ -111,9 +111,14 @@ function sync({ options, dirs, dirPath, init }) {
|
||||
if (options === null || options === void 0 ? void 0 : options.delete) {
|
||||
cmdArray.push("--delete");
|
||||
}
|
||||
if ((_a = options === null || options === void 0 ? void 0 : options.exclude) === null || _a === void 0 ? void 0 : _a[0]) {
|
||||
if ((_a = options === null || options === void 0 ? void 0 : options.include) === null || _a === void 0 ? void 0 : _a[0]) {
|
||||
options.include.forEach((excl) => {
|
||||
cmdArray.push(`--include='${excl}'`);
|
||||
});
|
||||
}
|
||||
if ((_b = options === null || options === void 0 ? void 0 : options.exclude) === null || _b === void 0 ? void 0 : _b[0]) {
|
||||
options.exclude.forEach((excl) => {
|
||||
cmdArray.push(`--exclude '${excl}'`);
|
||||
cmdArray.push(`--exclude='${excl}'`);
|
||||
});
|
||||
}
|
||||
const dstDr = dstDirs[j];
|
||||
|
||||
Reference in New Issue
Block a user