Updates
This commit is contained in:
Vendored
-5
@@ -10,10 +10,6 @@ const child_process_1 = require("child_process");
|
||||
const env_1 = __importDefault(require("./utils/env"));
|
||||
const confFileProvidedPath = process.argv[process.argv.length - 1];
|
||||
global.CONFIG_DIR = process.cwd();
|
||||
global.SYNCING_FILE = path_1.default.join(global.CONFIG_DIR, "syncing.txt");
|
||||
if (fs_1.default.existsSync(global.SYNCING_FILE)) {
|
||||
fs_1.default.unlinkSync(global.SYNCING_FILE);
|
||||
}
|
||||
if (confFileProvidedPath === "--version" || confFileProvidedPath === "-v") {
|
||||
try {
|
||||
const packageJson = fs_1.default.readFileSync(path_1.default.resolve(__dirname, "../package.json"), "utf-8");
|
||||
@@ -55,7 +51,6 @@ try {
|
||||
const configArray = JSON.parse(parsedConfigJSON);
|
||||
for (let i = 0; i < configArray.length; i++) {
|
||||
const config = configArray[i];
|
||||
console.log(`Syncing \`${config.title} ...\``);
|
||||
const childProcess = (0, child_process_1.spawn)("node", [
|
||||
path_1.default.resolve(__dirname, "./lib/sync.js"),
|
||||
`${JSON.stringify(config)}`,
|
||||
|
||||
Reference in New Issue
Block a user