Skip to content

Commit

Permalink
Fixed build_wsl.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavlo Dudnytskyi committed Jul 8, 2024
1 parent 5c47297 commit c126ac4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build_wsl.cmd
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c126ac4

Please sign in to comment.