forked from makeanedublocksblock/EduBlocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrpi-installer.sh
More file actions
26 lines (26 loc) · 998 Bytes
/
rpi-installer.sh
File metadata and controls
26 lines (26 loc) · 998 Bytes
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
echo 'Welcome to the EduBlocks installer! What would you like to install?'
options=("EduBlocks Connect" "EduBlocks Desktop" "Both" "Quit")
select opt in "${options[@]}"
do
case $opt in
"EduBlocks Connect")
echo "Installing EduBlocks Connect"
curl -sSL http://edublocks.org/downloads/connect/auto-installer-connect.sh | bash
break
;;
"EduBlocks Desktop")
echo "Installing EduBlocks Desktop"
curl -sSL http://edublocks.org/downloads/desktop/auto-installer-desktop.sh | bash
break
;;
"Both")
echo "Installing EduBlocks Connect & EduBlocks Desktop"
curl -sSL http://edublocks.org/downloads/connect/auto-installer-connect.sh | bash && curl -sSL http://edublocks.org/downloads/desktop/auto-installer-desktop.sh | bash
break
;;
"Quit")
break
;;
*) echo "invalid option $REPLY";;
esac
done