-
Notifications
You must be signed in to change notification settings - Fork 0
/
utd.sh
60 lines (50 loc) · 1.97 KB
/
utd.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
58
59
60
# many of these will be brittle since there is some light web scraping here, lemme know if anything isn't working
function utd-wezterm () {
# Update to the newest version of wezterm for ubuntu using the .debs
RELEASE_VERSION=$(lsb_release -r | cut -f2)
if ! [[ "$(lsb_release -i | cut -f2)" = "Ubuntu" ]]
then
echo Only ubuntu supported
exit 1
fi
LINK="$(curl -s https://github.com/wez/wezterm/releases/latest | \
grep -m1 -oi '/wez/.*wezterm.*ubuntu'$RELEASE_VERSION'.deb' | \
xargs -I % echo https://github.com%)"
FILE=$(basename $LINK)
curl -sL "$LINK" -o wezterm.deb
sudo dpkg -i wezterm.deb
rm wezterm.deb
}
function utd-github () {
LINK="$(curl -s https://github.com/cli/cli/releases/ | \
grep -m1 -oi '/cli/.*/gh_.*_linux_amd64.deb' | \
xargs -I % echo https://github.com%)"
curl -sL "$LINK" -o github.deb
sudo dpkg -i github.deb
rm github.deb
}
function utd-argocd () {
curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
sudo install -o root -g root -m 0755 argocd-linux-amd64 /usr/local/bin/argocd
rm argocd-linux-amd64
}
function utd-skaffold () {
curl -LO skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 && \
sudo install -o root -g root -m 0755 skaffold-linux-amd64 /usr/local/bin/skaffold
rm skaffold-linux-amd64
}
function utd-helm () {
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
sudo bash ./get_helm.sh
rm get_helm.sh
}
function utd-kubectl () {
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
rm kubectl
}
function utd-minikube () {
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install -o root -g root -m 0755 minikube-linux-amd64 /usr/local/bin/minikube
rm minikube-linux-amd64
}