mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-21 05:53:06 +00:00
Clean set-variables-in-env.js
This commit is contained in:
parent
7e6f64b16a
commit
4ea8c9568f
@ -1,14 +1,11 @@
|
||||
const yargs = require('yargs');
|
||||
// const tmp = require('tmp');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const argv = yargs.argv;
|
||||
const tempFile = `.temp-var-file.ts`;
|
||||
|
||||
if(argv.set) {
|
||||
const envFile = argv.set;
|
||||
|
||||
console.log(`Backuping up '${envFile}' into '${tempFile}'.`);
|
||||
fs.copyFileSync(envFile, tempFile);
|
||||
const content = fs.readFileSync(envFile, "utf8");
|
||||
|
Loading…
Reference in New Issue
Block a user