From c126ac499199d7fdaa25d710c9930952edb582ac Mon Sep 17 00:00:00 2001 From: Pavlo Dudnytskyi Date: Mon, 8 Jul 2024 08:25:46 +0200 Subject: [PATCH] Fixed build_wsl.cmd --- build_wsl.cmd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build_wsl.cmd b/build_wsl.cmd index a861f78..1e2d4c8 100644 --- a/build_wsl.cmd +++ b/build_wsl.cmd @@ -1,7 +1,7 @@ -@echo off -if [%1] == [] goto err -wsl --cd "%cd%" /bin/sh -c "esphome compile %1 2>&1 | tee buildlog.txt" -goto:eof -:err -echo Please use with esphome configuration as parameter +@echo off +if [%1] == [] goto err +wsl -e sh -lc "esphome compile %1 2>&1 | tee buildlog.txt" +goto:eof +:err +echo Please use with esphome configuration as parameter echo Example: build.cmd haier.yaml \ No newline at end of file