Skip to content

Commit ac34a63

Browse files
committed
Add new verification function
1 parent a7c427f commit ac34a63

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

install.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -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"
2425
SCRIPT_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"
3840
RESET="\e[0m"
3941
RED='\033[0;31m'
4042

@@ -50,6 +52,13 @@ if [[ $EUID -ne 0 ]]; then
5052
exit 1
5153
fi
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 #
5463
if ! [ -x "$(command -v curl)" ]; then
5564
echo "* curl is required in order for this script to work."

0 commit comments

Comments
 (0)