-
Notifications
You must be signed in to change notification settings - Fork 35
/
bbi.sh
57 lines (44 loc) · 1.2 KB
/
bbi.sh
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
#!/bin/bash
cd scripts
source dependencies.sh
if [[ "$1" == "start" ]]; then
if [[ "$2" == "jupyter" ]]; then
source start-jupyter.sh
elif [[ "$2" == "bumblebee" ]]; then
source start-bumblebee.sh
else
source start-environment.sh
fi
elif [[ "$1" == "restart" ]]; then
if [[ "$2" == "jupyter" ]]; then
source restart-jupyter.sh
elif [[ "$2" == "bumblebee" ]]; then
source restart-bumblebee.sh
else
source restart-environment.sh
fi
elif [[ "$1" == "install" ]]; then
if [[ "$2" == "optimus" ]]; then
source install-optimus.sh
elif [[ "$2" == "bumblebee" ]]; then
source install-bumblebee.sh
else
source install-environment.sh
fi
elif [[ "$1" == "update" ]]; then
if [[ "$2" == "optimus" ]]; then
source update-optimus.sh
elif [[ "$2" == "bumblebee" ]]; then
source update-bumblebee.sh
else
source update-environment.sh
fi
elif [[ "$1" == "stop" ]]; then
if [[ "$2" == "bumblebee" ]]; then
source stop-bumblebee.sh
else
echo "Unknown parameter, did you mean \"bbi stop bumblebee\"?"
fi
else
echo "Unknown parameter, try \"bbi install environment\""
fi