File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 33set -e
44
55# #######################################################
6- #
6+ #
77# Pterodactyl-AutoThemes Installation
88#
99# Created and maintained by Ferks-FK
@@ -21,6 +21,7 @@ curl --silent \
2121 sed -E ' s/.*"([^"]+)".*/\1/'
2222}
2323
24+ GITHUB_STATUS_URL=" https://www.githubstatus.com"
2425SCRIPT_VERSION=" $( get_release) "
2526
2627# Visual Functions #
@@ -35,6 +36,7 @@ hyperlink() {
3536 echo -e " \e]8;;${1} \a${1} \e]8;;\a"
3637}
3738
39+ YELLOW=" \033[1;33m"
3840RESET=" \e[0m"
3941RED=' \033[0;31m'
4042
@@ -50,6 +52,13 @@ if [[ $EUID -ne 0 ]]; then
5052 exit 1
5153fi
5254
55+ # Check Git #
56+ if [ -z " $SCRIPT_VERSION " ]; then
57+ error " Could not get the version of the script using GitHub."
58+ echo " * Please check on the site below if the 'API Requests' are as normal status."
59+ echo -e " ${YELLOW} $( hyperlink " $GITHUB_STATUS_URL " ) ${RESET} "
60+ fi
61+
5362# Check Curl #
5463if ! [ -x " $( command -v curl) " ]; then
5564 echo " * curl is required in order for this script to work."
You can’t perform that action at this time.
0 commit comments