-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathgameready.sh
38 lines (31 loc) · 1.07 KB
/
gameready.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
#!/usr/bin/env bash
# shellcheck disable=SC2140,SC2086
# COLOR VARIABLES
RED="\e[31m"
BLUE="\e[34m"
GREEN="\e[32m"
YELLOW="\e[33m"
ENDCOLOR="\e[0m"
source /etc/os-release
# PRINT CHECKING OS
echo -e "${YELLOW}Checking OS...${ENDCOLOR}"
# PRINT OS NAME
echo -e "${BLUE}Detected OS:${ENDCOLOR} `grep "^ID=" /etc/*-release | cut -d'=' -f2`"
# FOR ARCH AND MANJARO
if [[ $ID_LIKE = arch ]];
then
# RUN GAMEREADY-ARCH.SH
echo -e "\n\n${RED}<-- Running gameready-arch.sh -->${ENDCOLOR}"
bash <(curl -s https://raw.githubusercontent.com/NayamAmarshe/gameready/main/gameready-arch.sh)
exit 0
# FOR DEBIAN AND UBUNTU
elif [[ $ID_LIKE = debian ]] || [[ $ID_LIKE = ubuntu ]];
then
# RUN GAMEREADY-DEBIAN.SH
echo -e "\n\n${RED}<-- Running gameready-ubuntu.sh -->${ENDCOLOR}"
bash <(curl -s https://raw.githubusercontent.com/NayamAmarshe/gameready/main/gameready-ubuntu.sh)
exit 0
else
zenity --error --width 300 --title="Unsupported OS" --text="Your OS is not supported by GameReady. Please use Ubuntu, Debian, or Arch based distros."
exit 1
fi