@@ -40,7 +40,7 @@ function step_summary()
4040 # ref. https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary
4141 if [ -n " ${GITHUB_STEP_SUMMARY-} " ]; then
4242 { echo " # $header " ; echo ' ```console' ; cat " $contents " ; echo ' ```' ; } \
43- >> $GITHUB_STEP_SUMMARY
43+ >> " $GITHUB_STEP_SUMMARY "
4444 else
4545 echo " # $header "
4646 cat " $contents "
@@ -55,7 +55,7 @@ function print_size_info_header()
5555
5656function print_size_info()
5757{
58- local awk_script='
58+ local awk_script=$ '
5959/^\.data/ || /^\.rodata/ || /^\.bss/ || /^\.text/ || /^\.irom0\.text/{
6060 size[$1] = $2
6161}
6464 total_ram = size[".data"] + size[".rodata"] + size[".bss"]
6565 total_flash = size[".data"] + size[".rodata"] + size[".text"] + size[".irom0.text"]
6666
67- printf "%-28s %-8d %-8d %-8d %-8d %-10d %-8d %-8d\n",
67+ printf "%-28s %-8d %-8d %-8d %-8d %-10d %-8d %-8d\\ n",
6868 sketch_name,
6969 size[".data"], size[".rodata"], size[".bss"], size[".text"], size[".irom0.text"],
7070 total_ram, total_flash
@@ -110,9 +110,9 @@ function format_fqbn()
110110 local flash_size=$2
111111 local lwip=$3
112112
113- echo " esp8266com:esp8266:${board_name} :" \
114- " eesz=${flash_size} ," \
115- " ip=${lwip} "
113+ echo $ " esp8266com:esp8266:${board_name} :
114+ eesz=${flash_size} ,
115+ ip=${lwip} "
116116}
117117
118118function build_sketches()
@@ -131,16 +131,17 @@ function build_sketches()
131131 local build_out=" $cache_dir " /out
132132 mkdir -p " $build_out "
133133
134- local fqbn=$( format_fqbn " generic" " 4M1M" " $lwip " )
134+ local fqbn
135+ fqbn=$( format_fqbn " generic" " 4M1M" " $lwip " )
135136 echo " FQBN: $fqbn "
136137
137138 local build_cmd
138- build_cmd+= $ {cli_path}
139- build_cmd+= " compile" \
140- " --warnings=all" \
141- " --fqbn $fqbn " \
142- " --libraries $library_path " \
143- " --output-dir $build_out "
139+ build_cmd= $' ' " $ {cli_path}" '
140+ compile
141+ --warnings=all
142+ --fqbn ' " $fqbn " '
143+ --libraries ' " $library_path " '
144+ --output-dir ' " $build_out " ' '
144145
145146 print_size_info_header > " $cache_dir " /size.log
146147
@@ -300,9 +301,9 @@ function install_core()
300301
301302 local debug_flags=" "
302303 if [ " $debug " = " debug" ]; then
303- debug_flags=" -DDEBUG_ESP_PORT=Serial -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM" \
304- " -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI" \
305- " -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_ESP_OOM"
304+ debug_flags=$' -DDEBUG_ESP_PORT=Serial -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM
305+ -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI
306+ -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_ESP_OOM'
306307 fi
307308
308309 # Set our custom warnings for all builds
0 commit comments