Skip to content

Commit

Permalink
Auto commit @auto-committer
Browse files Browse the repository at this point in the history
4 files Modified: [index.js](+5)(-3), [lib/master.js](+1)(-0), [package.json](+1)(-1), [src/master.ts](+2)(-0)
  • Loading branch information
scrwdrv committed Jan 14, 2020
1 parent f79063b commit 87a03dc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env node
"use strict";
if (process.env.isWorker) require('./lib/worker');
else require('./lib/master');
'use strict';
if (process.env.isWorker)
Promise.resolve().then(() => require('./lib/worker'));
else
Promise.resolve().then(() => require('./lib/master'));
process.on('SIGINT', () => { });
1 change: 1 addition & 0 deletions lib/master.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const crypto = require("crypto");
const dir = require("recurdir");
const PATH = require("path");
const fs = require("fs");
__dirname = PATH.join(__dirname, '../');
const cpc = new worker_communication_1.default(), prompt = new prompt_1.default(), logServer = new cluster_ipc_logger_1.loggerServer({
debug: false,
directory: PATH.join(__dirname, 'logs'),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "safe-backup",
"version": "1.0.8",
"version": "1.0.9",
"description": "A CLI tool that helps you backup file or folder into a single password encrypted file. Using technology of Tar & AES.",
"main": "init.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/master.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import * as dir from 'recurdir';
import * as PATH from 'path';
import * as fs from 'fs';

__dirname = PATH.join(__dirname, '../');

declare global {
interface Config {
input: string[];
Expand Down

0 comments on commit 87a03dc

Please sign in to comment.