-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap
More file actions
executable file
·26 lines (24 loc) · 1009 Bytes
/
bootstrap
File metadata and controls
executable file
·26 lines (24 loc) · 1009 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
#!/usr/bin/env bash
# Detects the operating system and then performs a full bootstrap of the
# system by running the appropriate script.
# Usage:
# source <(curl -fsSL https://raw.githubusercontent.com/mapitman/linux-bootstrap/main/bootstrap)
source /etc/os-release
if [[ "$ID" == "ubuntu" ]]
then
source <(curl -fsSL https://raw.githubusercontent.com/mapitman/linux-bootstrap/main/ubuntu/bootstrap)
elif [[ "$ID" == "pop" ]]
then
source <(curl -fsSL https://raw.githubusercontent.com/mapitman/linux-bootstrap/main/pop_os/bootstrap)
elif [[ "$ID" == "fedora" ]]
then
source <(curl -fsSL https://raw.githubusercontent.com/mapitman/linux-bootstrap/main/fedora/bootstrap)
elif [[ "$ID" == "arch" ]]
then
source <(curl -fsSL https://raw.githubusercontent.com/mapitman/linux-bootstrap/main/arch/bootstrap)
elif [[ "$ID" == "debian" ]]
then
source <(curl -fsSL https://raw.githubusercontent.com/mapitman/linux-bootstrap/main/debian/bootstrap)
else
echo "Unsupported Linux distribution."
fi