-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·37 lines (32 loc) · 908 Bytes
/
install.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
#!/bin/bash
install_kece()
{
OS=$1
echo "install kece..."
#check os from args
case $OS in
darwin)
echo "os darwin"
# TODO
# wget https://github.com/wuriyanto48/kece/releases/download/v0.0.0/kece-v0.0.0.darwin-amd64.tar.gz
# tar -zxvf kece-v0.0.0.darwin-amd64.tar.gz
;;
linux)
echo "os linux"
# TODO
# wget https://github.com/wuriyanto48/kece/releases/download/v0.0.0/kece-v0.0.0.linux-amd64.tar.gz
# tar -zxvf kece-v0.0.0.linux-amd64.tar.gz
;;
msys)
echo "os windows"
#TODO
;;
*)
echo "operating system unknown"
;;
esac
}
os_type=${OSTYPE//[0-9.-]*/}
install_kece $os_type
# TODO
# curl https://raw.githubusercontent.com/wuriyanto48/kece/master/scripts/install.sh | bash