changeset 360:8e0dee85b73a prerelease

Fixed run_project.sh
author Giulio Moro <giuliomoro@yahoo.it>
date Wed, 08 Jun 2016 22:19:54 +0100
parents 58742af56d37
children 1b053bc0a4b5
files scripts/run_project.sh
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/run_project.sh	Wed Jun 08 22:18:56 2016 +0100
+++ b/scripts/run_project.sh	Wed Jun 08 22:19:54 2016 +0100
@@ -47,6 +47,8 @@
     esac
 done
 
+shift $((OPTIND-1))
+
 if [ -z "$1" ]
 then
     BBB_PROJECT_NAME=$BBB_DEFAULT_PROJECT_NAME
@@ -54,16 +56,17 @@
     BBB_PROJECT_NAME=$1
 fi
 
-shift $((OPTIND-1))
-
 MAKE_COMMAND="make stop -C $BBB_BELA_HOME PROJECT='$BBB_PROJECT_NAME' CL='$COMMAND_ARGS'"
 echo "Running $BBB_PROJECT_NAME..."
 if [ $RUN_WITHOUT_SCREEN -ne 0 ]
 then
-    ssh -t $BBB_ADDRESS "$MAKE_COMMAND run"
+    echo ssh $BBB_ADDRESS "$MAKE_COMMAND run"
+    ssh $BBB_ADDRESS "$MAKE_COMMAND run"
 elif [ $RUN_IN_FOREGROUND -eq 0 ]
 then
+    echo ssh $BBB_ADDRESS "$MAKE_COMMAND runscreenfg"
     ssh $BBB_ADDRESS "$MAKE_COMMAND runscreenfg"
 else
-    ssh -t $BBB_ADDRESS "$MAKE_COMMAND runscreen"
+    echo ssh $BBB_ADDRESS "$MAKE_COMMAND runscreen"
+    ssh $BBB_ADDRESS "$MAKE_COMMAND runscreen"
 fi