Revision 66984f56
| setup.sh | ||
|---|---|---|
| 371 | 371 |
# initialize submodule |
| 372 | 372 |
printInfo "initializing stm32flash submodule...\n" |
| 373 | 373 |
git submodule update --init $stm32flashdir 2>&1 | tee -a $LOG_FILE |
| 374 |
while [ ${PIPESTATUS[0]} -ne 0 ]; do
|
|
| 375 |
printWarning "initialitaion failed. Retry? [y/n]\n" |
|
| 376 |
local userinput="" |
|
| 377 |
readUserInput "YyNn" userinput |
|
| 378 |
case "$userinput" in |
|
| 379 |
Y|y) |
|
| 380 |
git submodule update --init $stm32flashdir 2>&1 | tee -a $LOG_FILE;; |
|
| 381 |
N|n) |
|
| 382 |
printWarning "stm32flash initialization aborted by user\n" |
|
| 383 |
return 1 |
|
| 384 |
;; |
|
| 385 |
*) # sanity check (return error) |
|
| 386 |
printError "unexpected input: $userinput\n"; return -1;; |
|
| 387 |
esac |
|
| 388 |
done |
|
| 374 | 389 |
|
| 375 | 390 |
# build the stm32flash tool |
| 376 | 391 |
printInfo "compiling stm32flash\n" |
Also available in: Unified diff