Mercurial > hg > beaglert
changeset 83:eec746389e20
Fixed compatibility with sh in the script
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Fri, 17 Jul 2015 22:54:35 +0100 |
parents | 371386c4e22f |
children | dab53ea16bd1 |
files | scripts/setup_board.sh |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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