Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vzakharchenko committed Nov 10, 2021
1 parent 5090f0e commit bd799b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function saveConfig(curConfig) {
configFile.portSMS = defaultSettings.portSMS;
}
const date = new Date();
fs.writeFileSync(path, JSON.stringify(`${process.env.HOME}/.remote-ctrl-gsm/${date.getFullYear()}_${date.getMonth()}_${date.getDay()}_${date.getHours()}_${date.getMinutes()}_${date.getSeconds()}_Config.bak`, null, 1), 'UTF-8');
fs.writeFileSync(`${process.env.HOME}/.remote-ctrl-gsm/${date.getFullYear()}_${date.getMonth()}_${date.getDay()}_${date.getHours()}_${date.getMinutes()}_${date.getSeconds()}_Config.bak`, JSON.stringify(curConfig, null, 1), 'UTF-8');
fs.writeFileSync(path, JSON.stringify(configFile, null, 1), 'UTF-8');
config = readConfig();
}
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": "smartthings-phevctl",
"version": "1.8.7",
"version": "1.8.8",
"description": "smartthings remote ctrl",
"main": "smartthings-phevctl.js",
"scripts": {
Expand Down

0 comments on commit bd799b5

Please sign in to comment.