Mercurial > hg > beaglert
diff scripts/setup_board.sh @ 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 | b89dd0c97a04 |
children | 91e1a3a220d4 |
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