@@ -23,7 +23,7 @@ curl --silent \
2323
2424SCRIPT_VERSION=" $( get_release) "
2525
26-
26+ # Visual Functions #
2727print_brake () {
2828 for (( n = 0 ; n < $1 ; n++ )) ; do
2929 echo -n " #"
@@ -35,31 +35,22 @@ hyperlink() {
3535 echo -e " \e]8;;${1} \a${1} \e]8;;\a"
3636}
3737
38- # ### Colors ####
39-
40- reset=" \e[0m"
41- red=' \033[0;31m'
38+ RESET=" \e[0m"
39+ RED=' \033[0;31m'
4240
4341error () {
44- red=' \033[0;31m'
45- reset=" \e[0m"
46-
4742 echo " "
48- echo -e " * ${red } ERROR${reset } : $1 "
43+ echo -e " * ${RED } ERROR${RESET } : $1 "
4944 echo " "
5045}
5146
52-
53- # ### Check Sudo ####
54-
47+ # Check Sudo #
5548if [[ $EUID -ne 0 ]]; then
5649 echo " * This script must be executed with root privileges (sudo)." 1>&2
5750 exit 1
5851fi
5952
60-
61- # ### Check Curl ####
62-
53+ # Check Curl #
6354if ! [ -x " $( command -v curl) " ]; then
6455 echo " * curl is required in order for this script to work."
6556 echo " * install using apt (Debian and derivatives) or yum/dnf (CentOS)"
6859
6960cancel () {
7061echo
71- echo -e " * ${red } Installation Canceled!${reset } "
62+ echo -e " * ${RED } Installation Canceled!${RESET } "
7263done=true
7364exit 1
7465}
@@ -87,31 +78,31 @@ print_brake 70
8778echo
8879
8980Backup () {
90- bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION} /backup.sh)
81+ bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/" ${SCRIPT_VERSION} " /backup.sh)
9182}
9283
9384Dracula () {
94- bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION} /themes/version1.x/Dracula/build.sh)
85+ bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/" ${SCRIPT_VERSION} " /themes/version1.x/Dracula/build.sh)
9586}
9687
9788Enola () {
98- bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION} /themes/version1.x/Enola/build.sh)
89+ bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/" ${SCRIPT_VERSION} " /themes/version1.x/Enola/build.sh)
9990}
10091
10192Twilight () {
102- bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION} /themes/version1.x/Twilight/build.sh)
93+ bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/" ${SCRIPT_VERSION} " /themes/version1.x/Twilight/build.sh)
10394}
10495
10596ZingTheme () {
106- bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION} /themes/version1.x/ZingTheme/build.sh)
97+ bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/" ${SCRIPT_VERSION} " /themes/version1.x/ZingTheme/build.sh)
10798}
10899
109100FlancoTheme () {
110- bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION} /themes/version1.x/FlancoTheme/build.sh)
101+ bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/" ${SCRIPT_VERSION} " /themes/version1.x/FlancoTheme/build.sh)
111102}
112103
113104BackgroundVideo () {
114- bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION} /themes/version1.x/BackgroundVideo/build.sh)
105+ bash <( curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/" ${SCRIPT_VERSION} " /themes/version1.x/BackgroundVideo/build.sh)
115106}
116107
117108
0 commit comments