File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ function build(){
2525 ${BUILD_SKETCHES} ${args}
2626 else
2727 for sketch in ${sketches} ; do
28- args+= " -s $( dirname $sketch ) "
29- if [ " $OS_IS_WINDOWS " == " 1" ]; then
28+ local sargs= " $args -s $( dirname $sketch ) "
29+ if [ " $OS_IS_WINDOWS " == " 1" ] && [ -d " $ARDUINO_IDE_PATH /tools-builder " ] ; then
3030 local ctags_version=` ls " $ARDUINO_IDE_PATH /tools-builder/ctags/" `
3131 local preprocessor_version=` ls " $ARDUINO_IDE_PATH /tools-builder/arduino-preprocessor/" `
3232 win_opts=" -prefs=runtime.tools.ctags.path=$ARDUINO_IDE_PATH /tools-builder/ctags/$ctags_version
3333 -prefs=runtime.tools.arduino-preprocessor.path=$ARDUINO_IDE_PATH /tools-builder/arduino-preprocessor/$preprocessor_version "
34- args +=" ${win_opts} "
34+ sargs +=" ${win_opts} "
3535 fi
36- ${BUILD_SKETCH} ${args }
36+ ${BUILD_SKETCH} ${sargs }
3737 done
3838 fi
3939}
You can’t perform that action at this time.
0 commit comments