From 7651fbb0d192dedd9691b8d0dc3388c41af6fbcf Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d.gussner@gmail.com> Date: Mon, 2 Nov 2020 17:11:24 +0100 Subject: [PATCH] Fix output "Configuration_prusa.h" delay if compiling failed. --- PF-build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PF-build.sh b/PF-build.sh index 7f0fd362..5a174c9c 100755 --- a/PF-build.sh +++ b/PF-build.sh @@ -731,7 +731,9 @@ do cp -f $SCRIPT_PATH/Firmware/variants/$VARIANT.h $SCRIPT_PATH/Firmware/Configuration_prusa.h || exit 29 else echo "$(tput setaf 6)Configuration_prusa.h already exist it will be overwritten in 10 seconds by the chosen variant.$(tput sgr 0)" - read -t 10 -p "Press Enter to continue..." + if [ $OUTPUT == "1" ] ; then + read -t 10 -p "Press Enter to continue..." + fi cp -f $SCRIPT_PATH/Firmware/variants/$VARIANT.h $SCRIPT_PATH/Firmware/Configuration_prusa.h || exit 29 fi