File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ function count_sketches { # count_sketches <path> [target] [file] [ignore-requir
400400}
401401
402402function build_sketches { # build_sketches <ide_path> <user_path> <target> <path> <chunk> <total-chunks> [extra-options]
403- local args=" "
403+ local args=()
404404 while [ -n " $1 " ]; do
405405 echo " arg: $1 "
406406 case $1 in
@@ -415,12 +415,12 @@ function build_sketches { # build_sketches <ide_path> <user_path> <target> <path
415415 -t )
416416 shift
417417 target=$1
418- args+=" -t $target "
418+ args+=( " -t " " $target " )
419419 ;;
420420 -fqbn )
421421 shift
422422 fqbn=$1
423- args+=" -fqbn $fqbn "
423+ args+=( " -fqbn" " $fqbn " )
424424 ;;
425425 -p )
426426 shift
@@ -530,9 +530,9 @@ function build_sketches { # build_sketches <ide_path> <user_path> <target> <path
530530 fi
531531
532532 local sketchnum=0
533- args+=" -ai $ide_path -au $user_path -i $chunk_index "
533+ args+=( " -ai" " $ide_path " " -au" " $user_path " " -i " " $chunk_index " )
534534 if [ -n " $log_compilation " ]; then
535- args+=" -l $log_compilation "
535+ args+=( " -l " " $log_compilation " )
536536 fi
537537 for sketch in $sketches ; do
538538 local sketchdir
@@ -548,7 +548,7 @@ function build_sketches { # build_sketches <ide_path> <user_path> <target> <path
548548 fi
549549 echo " "
550550 echo " Building Sketch Index $sketchnum - $sketchdirname "
551- build_sketch " $args " -s " $sketchdir " " ${xtra_opts[@]} "
551+ build_sketch " ${ args[@]} " -s " $sketchdir " " ${xtra_opts[@]} "
552552 local result=$?
553553 if [ $result -ne 0 ]; then
554554 return $result
You can’t perform that action at this time.
0 commit comments