From 356fe248af3fbd0ffca37f52c9c3cf7aae9b7c53 Mon Sep 17 00:00:00 2001 From: simatec Date: Thu, 2 Nov 2023 11:49:30 +0100 Subject: [PATCH] (simatec) Beta 2.9.1 --- README.md | 3 +++ lib/scripts/48-esphome.js | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b2e81f7..73071d7d 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,9 @@ When the adapter crashes or another Code error happens, this error message that ## Changelog +### **WORK IN PROGRESS** +* (simatec) ignore Build directory for ESPHome added + ### 2.9.0 (2023-11-01) * (simatec) mount option "Cache Loose" added * (simatec) ESPHome Backup added diff --git a/lib/scripts/48-esphome.js b/lib/scripts/48-esphome.js index ef75e9e8..ba8ed4f1 100644 --- a/lib/scripts/48-esphome.js +++ b/lib/scripts/48-esphome.js @@ -31,7 +31,9 @@ function command(options, log, callback) { dest: fileName, tar: { ignore: function (name) { - return path.extname(name) != '.yaml' // ignore all was not .yaml files when packing + //return path.extname(name) != '.yaml' // ignore all was not .yaml files when packing + //return path.dirname(name) === path.join(pth, '.esphome') || path.dirname(name) === path.join(pth, '.gitignore') // ignore all was not .yaml files when packing + return path.basename(name) === '.esphome' || path.basename(name) === '.gitignore' // ignore all was not .yaml files when packing basename } } }, (err, stdout, stderr) => {