From c0fc5f679a1c7cef416265ac7101c7c684a1f72a Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 18 Apr 2024 14:28:40 +1200 Subject: [PATCH] Fix indentation in make_header.sh script and remove ls command (#76) --- scripts/make_header.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/make_header.sh b/scripts/make_header.sh index 4018760..4d92c7b 100755 --- a/scripts/make_header.sh +++ b/scripts/make_header.sh @@ -1,5 +1,5 @@ #!/bin/bash -cat < ./$1/$2 +cat <./$1/$2 #pragma once // Generated from https://github.com/esphome/esphome-webserver #include "esphome/core/hal.h" @@ -8,11 +8,10 @@ namespace esphome { namespace $3 { EOT -echo "const uint8_t INDEX_GZ[] PROGMEM = {" >> ./$1/$2 -xxd -cols 19 -i $1/index.html.gz | sed -e '2,$!d' -e 's/^/ /' -e '$d' | sed -e '$d' | sed -e '$s/$/};/' >> ./$1/$2 -cat <> ./$1/$2 +echo "const uint8_t INDEX_GZ[] PROGMEM = {" >>./$1/$2 +xxd -cols 19 -i $1/index.html.gz | sed -e '2,$!d' -e 's/^/ /' -e '$d' | sed -e '$d' | sed -e '$s/$/};/' >>./$1/$2 +cat <>./$1/$2 } // namespace $3 } // namespace esphome EOT -ls -l ./$1/$2