forked from gefyrahq/gefyra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
34 lines (31 loc) · 999 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
OS="`uname`"
case $OS in
'Linux')
OS=linux
echo "Detected Linux! (Congratulations!)"
;;
'Darwin')
OS=darwin
echo "Detected MacOS"
;;
*)
echo "No supported platform detected"
exit 1
;;
esac
download_url=$(curl -L -s https://api.github.com/repos/gefyrahq/gefyra/releases/latest | grep '"browser_download_url": ".*'$OS'.*"' | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*")
file_name=$(echo $download_url | grep -oE '[^/]+$')
curl -L $download_url -o /tmp/$file_name
unzip -o /tmp/$file_name -d /tmp/gefyra
sudo install -m 0755 /tmp/gefyra/gefyra /usr/local/bin/gefyra
# cleanup
rm -rf /tmp/$file_name
rm -rf /tmp/deck
# additional information
echo ""
echo "🎉 Gefyra has been successfully installed"
echo ""
echo "🚀 Here's our getting started guide: https://gefyra.dev/getting-started/ "
echo "💡 Some exciting use cases: https://gefyra.dev/usecases/ "
echo ""
echo "❓ Any problems? Feel free to provide us with feedback: https://github.com/gefyrahq/gefyra/issues/ "