Skip to content

Commit

Permalink
test arendst#4
Browse files Browse the repository at this point in the history
  • Loading branch information
mepunit committed Aug 19, 2021
1 parent a5dde7e commit 5ff0e10
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compile/compile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// const shell = require('shelljs');
const fs = require('fs-extra');
// const fs = require('fs-extra');
const fs = require('fs');
// const path = require('path');
// const _ = require('lodash');
// const debug = require('debug')('compile');
Expand All @@ -14,7 +15,7 @@ const {
} = require('./config');

const getTasmotaVersion = () => {
const fileExists = fs.pathExistsSync(tasmotaVersionFile);
const fileExists = fs.existsSync(tasmotaVersionFile);
const versRegexp = /const uint32_t VERSION = (.*);/gm;

if (fileExists) {
Expand All @@ -34,7 +35,7 @@ const getTasmotaVersion = () => {
};

const getImageName = (socket, name) => {
const fileExists = fs.pathExistsSync(tasmotaInoFile);
const fileExists = fs.existsSync(tasmotaInoFile);
const imageNameRegexp = /char image_name\[(.*)\];/gm;
const codeImageStr = `TasmoCompiler-${name}`;
let retValue = '';
Expand Down

0 comments on commit 5ff0e10

Please sign in to comment.