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 @@ -13,7 +13,7 @@ FORCE_CONTINUE=0
13
13
FULL_REPORT=1
14
14
15
15
RETVAL_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
17
17
18
18
# print colored title
19
19
print_title ()
@@ -141,20 +141,20 @@ function checkDependency()
141
141
for D in ` find $TOP /submodules/ -maxdepth 1 -mindepth 1 -type d`
142
142
do
143
143
if [ -z " $( ls -A $D ) " ]; then
144
- (( retVal = retVal + 1 ))
144
+ updateRetval 1
145
145
print_warning " Missing submodule $D , perhaps you forgot to run git submodule update --init --recursive"
146
146
fi
147
147
done
148
148
149
149
# check arduino ide
150
150
if [ -z " $( which arduino 2> /dev/null) " ]; then
151
- (( retVal = retVal + 1 ))
151
+ updateRetval 1
152
152
print_warning " Missing arduino ide, which is required for Arduino-makefile submodule, please install arduino"
153
153
fi
154
154
155
155
# check avr
156
156
if [ -z " $( which avr-gcc 2> /dev/null) " ] || [ -z " $( which avrdude 2> /dev/null) " ]; then
157
- (( retVal = retVal + 1 ))
157
+ updateRetval 1
158
158
print_warning " Missing avr package, please install gcc-avr binutils-avr gdb-avr avr-libc avrdude"
159
159
fi
160
160
}
You can’t perform that action at this time.
0 commit comments