-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
28 lines (24 loc) · 721 Bytes
/
install
File metadata and controls
28 lines (24 loc) · 721 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
27
28
#!/bin/bash
# This script should detect the OS, then download and run the relevant installer for that OS
set -e
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
*) machine="UNKNOWN:${unameOut}"
esac
mac_func() {
echo "Installing Tunnelmole for Mac OS X"
curl -O https://tunnelmole.com/sh/install-mac.sh && bash install-mac.sh
}
linux_func() {
echo "Installing Tunnelmole for Linux"
curl -O https://tunnelmole.com/sh/install-linux.sh && bash install-linux.sh
}
if [ "${machine}" == "Linux" ]; then
linux_func
elif [ "${machine}" == "Mac" ]; then
mac_func
fi