# HG changeset patch # User Giulio Moro # Date 1465420794 -3600 # Node ID 8e0dee85b73a9e0c606190a5177e28fd6500a749 # Parent 58742af56d37a88fdedc0f29e6ccb502cc3598f9 Fixed run_project.sh diff -r 58742af56d37 -r 8e0dee85b73a scripts/run_project.sh --- 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