-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
36 lines (30 loc) · 1.29 KB
/
init.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
git config user.name "Random Geek"
git config user.email randomgeek78@gmail.com
sudo apt update -y
sudo apt upgrade -y
if ! command -v "yadm" >& /dev/null; then
if command -v "apt" >& /dev/null; then
sudo apt install -y yadm
elif command -v "dnf" >& /dev/null; then
sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/home:TheLocehiliosan:yadm/Fedora_33/home:TheLocehiliosan:yadm.repo
sudo dnf install -y yadm
fi
fi
#if command -v "apt" >& /dev/null; then
# sudo apt install jq -y
# bazelisk_url=$(curl -sL https://api.github.com/repos/bazelbuild/bazelisk/releases/latest | jq -cr '.assets[] | select( .name | contains("linux-amd64")) | .browser_download_url')
# curl -sL $bazelisk_url | sudo tee /usr/local/bin/bazelisk > /dev/null
# sudo chmod +x /usr/local/bin/bazelisk
#
# sudo ln -s bazelisk /usr/local/bin/bazel
#fi
#
#
#if [[ $local_system =~ ^(GNU/Linux)$ ]] ; then
# sudo apt install jq -y
# bazelisk_url=$(curl -sL https://api.github.com/repos/bazelbuild/bazelisk/releases/latest | jq -cr '.assets[] | select( .name | contains("linux-amd64")) | .browser_download_url')
# curl -sL $bazelisk_url | sudo tee /usr/local/bin/bazelisk > /dev/null
# sudo chmod +x /usr/local/bin/bazelisk
#
# sudo ln -s /usr/local/bin/bazelisk /usr/local/bin/bazel
#fi