From f25a14188c54429bfafb4447706fac2cfa21ba2f Mon Sep 17 00:00:00 2001 From: Yonas Jongkind Date: Fri, 22 Feb 2019 15:16:48 -0800 Subject: [PATCH] Update build_func.sh Allow the -v command line option to also work for the "flash" command. --- MicroPython_BUILD/build_func.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MicroPython_BUILD/build_func.sh b/MicroPython_BUILD/build_func.sh index 3588d89b..0e4950ee 100755 --- a/MicroPython_BUILD/build_func.sh +++ b/MicroPython_BUILD/build_func.sh @@ -652,7 +652,12 @@ executeCommand() { echo "Flashing MicroPython firmware to ESP32..." echo "=========================================" make ${J_OPTION} ${arg}${BUILD_COMPORT}${BUILD_BDRATE} 2>/dev/null - + if [ "${MP_SHOW_PROGRESS}" == "yes" ]; then + make ${J_OPTION} ${arg} + else + make ${J_OPTION} ${arg} 2>/dev/null + fi + # --------------------------------- elif [ "${arg}" == "erase" ]; then echo "======================"