# HG changeset patch # User Giulio Moro # Date 1437170075 -3600 # Node ID eec746389e20f979ce61e1631a938a0c178bee19 # Parent 371386c4e22f24be4da9dbfa19006559cc449e5d Fixed compatibility with sh in the script diff -r 371386c4e22f -r eec746389e20 scripts/setup_board.sh --- a/scripts/setup_board.sh Fri Jul 17 21:43:05 2015 +0100 +++ b/scripts/setup_board.sh Fri Jul 17 22:54:35 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