summaryrefslogtreecommitdiff
path: root/setup/setupscr.sh
blob: 1807d0825d267a87611c1bffc81d5b4f72ad87bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#! /bin/bash
cat << "EOF"






                ________________
               /                \
               |   Welkome to   |
               |  the robotics  |
               |  linux setup   |
               |    script!!    |
               \_____    _______/
                    |  /
                    | /
                    |/
            \|/
        -----------
        |         |
        |  ~    0 |
        |         |
        | \_____/ |
        -----------
        __/    \__
       /    \ /   \
      /  |[] |  |  \
     /  /|   |  |\  \
    |  | |   |  | |  |
    |  | |   |  | |  |
    |__| |      | |__|
    {  } ==={}=== {  }
    /||\ |  ||  | /||\
         |  ||  |
         |  ||  |
         |  ||  |
         |  ||  |
     /---   ||   ---\
    /______/  \______\
EOF
sleep 2
while true; do
    read -p "Please select (1)The automatic setup script, (2)The guided setup script or (3)Exit this script)? [1]/[2]/[3]:  " chpw
    case $chpw in
        1|a*|A*)
            sh -c "$(curl -sSL https://raw.githubusercontent.com/mendelcollege-robotics/robotica/refs/heads/main/setup/recoscript.sh)"
            ;;
        2|g*|G*)
            sh -c "$(curl -sSL https://raw.githubusercontent.com/mendelcollege-robotics/robotica/refs/heads/main/setup/selectscript.sh)"
            ;;
        3|e*|E*)
            exit
            ;;
        *)
            echo 'Unrecognised input, please try again'
            ;;
    esac

done