File tree 1 file changed +6
-6
lines changed
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
400
400
}
401
401
402
402
function build_sketches { # build_sketches <ide_path> <user_path> <target> <path> <chunk> <total-chunks> [extra-options]
403
- local args=" "
403
+ local args=()
404
404
while [ -n " $1 " ]; do
405
405
echo " arg: $1 "
406
406
case $1 in
@@ -415,12 +415,12 @@ function build_sketches { # build_sketches <ide_path> <user_path> <target> <path
415
415
-t )
416
416
shift
417
417
target=$1
418
- args+=" -t $target "
418
+ args+=( " -t " " $target " )
419
419
;;
420
420
-fqbn )
421
421
shift
422
422
fqbn=$1
423
- args+=" -fqbn $fqbn "
423
+ args+=( " -fqbn" " $fqbn " )
424
424
;;
425
425
-p )
426
426
shift
@@ -530,9 +530,9 @@ function build_sketches { # build_sketches <ide_path> <user_path> <target> <path
530
530
fi
531
531
532
532
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 " )
534
534
if [ -n " $log_compilation " ]; then
535
- args+=" -l $log_compilation "
535
+ args+=( " -l " " $log_compilation " )
536
536
fi
537
537
for sketch in $sketches ; do
538
538
local sketchdir
@@ -548,7 +548,7 @@ function build_sketches { # build_sketches <ide_path> <user_path> <target> <path
548
548
fi
549
549
echo " "
550
550
echo " Building Sketch Index $sketchnum - $sketchdirname "
551
- build_sketch " $args " -s " $sketchdir " " ${xtra_opts[@]} "
551
+ build_sketch " ${ args[@]} " -s " $sketchdir " " ${xtra_opts[@]} "
552
552
local result=$?
553
553
if [ $result -ne 0 ]; then
554
554
return $result
You can’t perform that action at this time.
0 commit comments