Skip to content

Commit baba907

Browse files
committed
- fixed dependency check fail
1 parent 421c768 commit baba907

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

project_manager.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FORCE_CONTINUE=0
1313
FULL_REPORT=1
1414

1515
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
1717

1818
# print colored title
1919
print_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
}

0 commit comments

Comments
 (0)