# HG changeset patch # User Giulio Moro # Date 1466212864 -3600 # Node ID 2e058007c6bc3307eb8ac7338e9a623deb36abb6 # Parent cea66c2af5602bc7626c1ac8b94f470f5f2012f9 update_board better parsing of user input, press a key to continue to improve experience of double-clickers diff -r cea66c2af560 -r 2e058007c6bc scripts/update_board --- a/scripts/update_board Fri Jun 17 04:52:43 2016 +0100 +++ b/scripts/update_board Sat Jun 18 02:21:04 2016 +0100 @@ -98,7 +98,7 @@ printf "y\n" else read REPLY; - [ $REPLY != y ] && [ $REPLY != Y ] && { echo "Aborting..."; exit 1; } + [ -z $REPLY ] || { [ $REPLY != y ] && [ $REPLY != Y ]; } && { echo "Aborting..."; exit 1; } fi else echo "Installing Bela core code in $BBB_ADDRESS:$BBB_BELA_HOME" @@ -147,7 +147,7 @@ error_handler $? printf "Generating on-board documentation..." -ssh $BBB_ADDRESS "cd $BBB_BELA_HOME; doxygen &> /dev/null" +#ssh $BBB_ADDRESS "cd $BBB_BELA_HOME; doxygen &> /dev/null" error_handler $? "\nError while generating Doxygen documentation\n" #------------- @@ -170,4 +170,7 @@ ssh $BBB_ADDRESS make -C $BBB_BELA_HOME --no-print-directory idestartup nostartup && echo "The board will now run the IDE at startup, but startup of the Bela program has been disabled. To enable it, use the set_startup.sh script" - +{ [ $ALWAYS_YES -eq 1 ] || [ $SHLVL -ge 1 ]; } && printf "\nSetup complete.\n\n" || { + printf '\nSetup complete, press any key to continue\n\n' + read +}