# HG changeset patch # User Giulio Moro # Date 1437170305 -3600 # Node ID dab53ea16bd1ad3097d60ad98b6fd037e37b6a7a # Parent eec746389e20f979ce61e1631a938a0c178bee19# Parent d6e5f7ca49584b6677f7265742a831fddfd63230 merge diff -r d6e5f7ca4958 -r dab53ea16bd1 scripts/setup_board.sh --- a/scripts/setup_board.sh Fri Jul 17 22:17:25 2015 +0100 +++ b/scripts/setup_board.sh Fri Jul 17 22:58:25 2015 +0100 @@ -40,7 +40,7 @@ read -p "Warning: this script will DELETE any existing BeagleRT files from your BeagleBone! Continue? " -n 1 -r echo -if [[ $REPLY =~ ^[Yy]$ ]] +if [[ $REPLY = y ]] then # Stop BeagleRT if running and remove all files echo "Stopping BeagleRT and removing old files." @@ -59,5 +59,7 @@ echo "Creating directory structure on BeagleBone..." ssh $BBB_ADDRESS "mkdir -p $BBB_PATH/source ; mkdir -p $BBB_PATH/build ; mkdir -p $BBB_PATH/build/core ; mkdir -p $BBB_PATH/build/source" &&\ echo "Done." +else + echo "Aborting..." fi