File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ function build(){
25
25
${BUILD_SKETCHES} ${args}
26
26
else
27
27
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
30
30
local ctags_version=` ls " $ARDUINO_IDE_PATH /tools-builder/ctags/" `
31
31
local preprocessor_version=` ls " $ARDUINO_IDE_PATH /tools-builder/arduino-preprocessor/" `
32
32
win_opts=" -prefs=runtime.tools.ctags.path=$ARDUINO_IDE_PATH /tools-builder/ctags/$ctags_version
33
33
-prefs=runtime.tools.arduino-preprocessor.path=$ARDUINO_IDE_PATH /tools-builder/arduino-preprocessor/$preprocessor_version "
34
- args +=" ${win_opts} "
34
+ sargs +=" ${win_opts} "
35
35
fi
36
- ${BUILD_SKETCH} ${args }
36
+ ${BUILD_SKETCH} ${sargs }
37
37
done
38
38
fi
39
39
}
You can’t perform that action at this time.
0 commit comments