diff --git a/Perso/MATCH_BEGIN.sh b/Perso/MATCH_BEGIN.sh new file mode 100755 index 0000000..65e238f --- /dev/null +++ b/Perso/MATCH_BEGIN.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +x-term -e "~/Documents/TechTheTown-HighLevel/config/auto_config.sh" + +couleur=$(grep $configFile -e "^COULEUR" | head -n 1 | cut -d "=" -f 2 | cut -d " " -f 2) + +if [ couleur = "orange" ]; then + xterm -e "python ~/Documents/TechTheTown-HighLevel/src/patternRecognition/setPatternPosition/SetPatternPositionOrange.py;exit" +else + xterm -e "python ~/Documents/TechTheTown-HighLevel/src/patternRecognition/setPatternPosition/SetPatternPositionGreen.py;exit" +fi + +xterm -e "cd ~/Documents/TechTheTown-HighLevel; java -jar techthetown-highlevel.jar;cd - " \ No newline at end of file diff --git a/Perso/auto_config.sh b/Perso/auto_config.sh index de2000c..37fe45e 100755 --- a/Perso/auto_config.sh +++ b/Perso/auto_config.sh @@ -138,4 +138,6 @@ if [ $changeMatchScript != 'n' ]; then fi echo "" -echo "May the Force be with Aspie" \ No newline at end of file +echo "May the Force be with Aspie" + +exit \ No newline at end of file