forked from me-no-dev/ESPAsyncWebServer
build fixes
This commit is contained in:
1 parent
a19c32bba3
commit
14798d0e6a
2 files changed
+11
-3
No files matched your search
@@ -110,9 +110,13 @@ function build_sketch(){ # build_sketch <fqbn> <path-to-ino> [extra-options]
|
|||||||
function count_sketches() # count_sketches <examples-path>
|
function count_sketches() # count_sketches <examples-path>
|
||||||
{
|
{
|
||||||
local examples="$1"
|
local examples="$1"
|
||||||
|
rm -rf sketches.txt
|
||||||
|
if [ ! -d "$examples" ]; then
|
||||||
|
touch sketches.txt
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
local sketches=$(find $examples -name *.ino)
|
local sketches=$(find $examples -name *.ino)
|
||||||
local sketchnum=0
|
local sketchnum=0
|
||||||
rm -rf sketches.txt
|
|
||||||
for sketch in $sketches; do
|
for sketch in $sketches; do
|
||||||
local sketchdir=$(dirname $sketch)
|
local sketchdir=$(dirname $sketch)
|
||||||
local sketchdirname=$(basename $sketchdir)
|
local sketchdirname=$(basename $sketchdir)
|
||||||
|
|||||||
@@ -27,10 +27,14 @@ function build_pio_sketch(){ # build_pio_sketch <board> <path-to-ino>
|
|||||||
|
|
||||||
function count_sketches() # count_sketches <examples-path>
|
function count_sketches() # count_sketches <examples-path>
|
||||||
{
|
{
|
||||||
local examples="$1"
|
local examples="$1"
|
||||||
|
rm -rf sketches.txt
|
||||||
|
if [ ! -d "$examples" ]; then
|
||||||
|
touch sketches.txt
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
local sketches=$(find $examples -name *.ino)
|
local sketches=$(find $examples -name *.ino)
|
||||||
local sketchnum=0
|
local sketchnum=0
|
||||||
rm -rf sketches.txt
|
|
||||||
for sketch in $sketches; do
|
for sketch in $sketches; do
|
||||||
local sketchdir=$(dirname $sketch)
|
local sketchdir=$(dirname $sketch)
|
||||||
local sketchdirname=$(basename $sketchdir)
|
local sketchdirname=$(basename $sketchdir)
|
||||||
|
|||||||
Reference in new issue
Block a user