Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Add new verification function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferks-FK committed Mar 15, 2022
1 parent a7c427f commit ac34a63
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

########################################################
#
#
# Pterodactyl-AutoThemes Installation
#
# Created and maintained by Ferks-FK
Expand All @@ -21,6 +21,7 @@ curl --silent \
sed -E 's/.*"([^"]+)".*/\1/'
}

GITHUB_STATUS_URL="https://www.githubstatus.com"
SCRIPT_VERSION="$(get_release)"

# Visual Functions #
Expand All @@ -35,6 +36,7 @@ hyperlink() {
echo -e "\e]8;;${1}\a${1}\e]8;;\a"
}

YELLOW="\033[1;33m"
RESET="\e[0m"
RED='\033[0;31m'

Expand All @@ -50,6 +52,13 @@ if [[ $EUID -ne 0 ]]; then
exit 1
fi

# Check Git #
if [ -z "$SCRIPT_VERSION" ]; then
error "Could not get the version of the script using GitHub."
echo "* Please check on the site below if the 'API Requests' are as normal status."
echo -e "${YELLOW}$(hyperlink "$GITHUB_STATUS_URL")${RESET}"
fi

# Check Curl #
if ! [ -x "$(command -v curl)" ]; then
echo "* curl is required in order for this script to work."
Expand Down

0 comments on commit ac34a63

Please sign in to comment.