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 @@ -13,7 +13,7 @@ FORCE_CONTINUE=0
1313FULL_REPORT=1
1414
1515RETVAL_FILE=.retVal.tmp # file contains return value of script, useful for travis
16- rm -f $RETVAL_FILE # rm retval file first
16+ echo " 0 " > $RETVAL_FILE # rm retval file first
1717
1818# print colored title
1919print_title ()
@@ -141,20 +141,20 @@ function checkDependency()
141141 for D in ` find $TOP /submodules/ -maxdepth 1 -mindepth 1 -type d`
142142 do
143143 if [ -z " $( ls -A $D ) " ]; then
144- (( retVal = retVal + 1 ))
144+ updateRetval 1
145145 print_warning " Missing submodule $D , perhaps you forgot to run git submodule update --init --recursive"
146146 fi
147147 done
148148
149149 # check arduino ide
150150 if [ -z " $( which arduino 2> /dev/null) " ]; then
151- (( retVal = retVal + 1 ))
151+ updateRetval 1
152152 print_warning " Missing arduino ide, which is required for Arduino-makefile submodule, please install arduino"
153153 fi
154154
155155 # check avr
156156 if [ -z " $( which avr-gcc 2> /dev/null) " ] || [ -z " $( which avrdude 2> /dev/null) " ]; then
157- (( retVal = retVal + 1 ))
157+ updateRetval 1
158158 print_warning " Missing avr package, please install gcc-avr binutils-avr gdb-avr avr-libc avrdude"
159159 fi
160160}
You can’t perform that action at this time.
0 commit comments