Updates
This commit is contained in:
@@ -9,17 +9,12 @@ import { TurboSyncConfigArray } from "./types";
|
||||
declare global {
|
||||
var SYNC_SUCCESS_EXIT_CODE: number;
|
||||
var CONFIG_DIR: string;
|
||||
var SYNCING_FILE: string;
|
||||
var SYNCING: boolean;
|
||||
}
|
||||
|
||||
const confFileProvidedPath = process.argv[process.argv.length - 1];
|
||||
|
||||
global.CONFIG_DIR = process.cwd();
|
||||
global.SYNCING_FILE = path.join(global.CONFIG_DIR, "syncing.txt");
|
||||
|
||||
if (fs.existsSync(global.SYNCING_FILE)) {
|
||||
fs.unlinkSync(global.SYNCING_FILE);
|
||||
}
|
||||
|
||||
if (confFileProvidedPath === "--version" || confFileProvidedPath === "-v") {
|
||||
try {
|
||||
@@ -89,7 +84,6 @@ try {
|
||||
|
||||
for (let i = 0; i < configArray.length; i++) {
|
||||
const config = configArray[i];
|
||||
console.log(`Syncing \`${config.title} ...\``);
|
||||
|
||||
const childProcess = spawn(
|
||||
"node",
|
||||
|
||||
Reference in New Issue
Block a user