-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfigure.sh
More file actions
executable file
·28 lines (26 loc) · 684 Bytes
/
configure.sh
File metadata and controls
executable file
·28 lines (26 loc) · 684 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
27
28
#!/usr/bin/env bash
if [ "$(uname)" == "Darwin" ]; then
echo Updating Mac
./systems/mac/mac.sh
elif [ -f /etc/os-release ]; then
# shellcheck disable=SC1091
source /etc/os-release
if [ "$NAME" == "Arch Linux" ]; then
if [ -z "$DISPLAY" ]; then
echo Updating Arch server
./systems/arch/server/arch.sh
else
echo Updating Arch desktop
./systems/arch/antergos/antergos.sh
fi
elif [ "$NAME" == "Ubuntu" ]; then
echo Updating Ubuntu
./systems/ubuntu/desktop.sh
else
echo Failed to detect the Linux distribution
exit 1
fi
else
echo Failed to detect the OS
exit 1
fi