changeset 84:dab53ea16bd1

merge
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 17 Jul 2015 22:58:25 +0100
parents eec746389e20 (diff) d6e5f7ca4958 (current diff)
children 91e1a3a220d4
files
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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