Skip to content

Commit 1ac039d

Browse files
committed
Remove broken code
1 parent 743bc1e commit 1ac039d

File tree

4 files changed

+6
-62
lines changed

4 files changed

+6
-62
lines changed

install.sh

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@ curl --silent \
2121
sed -E 's/.*"([^"]+)".*/\1/'
2222
}
2323

24-
# Get the latest and penultimate version of the pterodactyl #
25-
get_branch() {
26-
curl --silent \
27-
-H "Accept: application/vnd.github.v3+json" \
28-
https://api.github.com/repos/pterodactyl/panel/releases |
29-
grep '"tag_name":' |
30-
sed -E 's/.*"([^"]+)".*/\1/' |
31-
sed "s/[v]//g"
32-
}
33-
3424
GITHUB_STATUS_URL="https://www.githubstatus.com"
3525
SCRIPT_VERSION="$(get_release)"
3626

@@ -131,15 +121,11 @@ bash <(curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes
131121

132122

133123
while [ "$done" == false ]; do
134-
CREATE_ARRAY=$'\n' read -d "\034" -r -a array <<<"$(get_branch)\034" # https://unix.stackexchange.com/a/628543
135-
LATEST_VERSION="${array[0]}"
136-
PENULTIMATE_VERSION="${array[1]}"
137-
138124
options=(
139125
"Restore Panel Backup (Restore your panel if you have problems or want to remove themes)"
140-
"Install Dracula (Only $PENULTIMATE_VERSION and $LATEST_VERSION)"
141-
"Install Enola (Only $PENULTIMATE_VERSION and $LATEST_VERSION)"
142-
"Install Twilight (Only $PENULTIMATE_VERSION and $LATEST_VERSION)"
126+
"Install Dracula (Only 1.7.0 and 1.8.1)"
127+
"Install Enola (Only 1.7.0 and 1.8.1)"
128+
"Install Twilight (Only 1.7.0 and 1.8.1)"
143129
"Install Zing Theme (Only 1.6.6 and 1.7.0)"
144130
"Install Flanco Theme (Only 1.6.6 and 1.7.0)"
145131
"Install Background Video (Only 1.7.0 and 1.8.1)"

themes/version1.x/Dracula/build.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -120,26 +120,12 @@ fi
120120
update_variables
121121
}
122122

123-
# Get the latest and penultimate version of the pterodactyl #
124-
get_branch() {
125-
curl --silent \
126-
-H "Accept: application/vnd.github.v3+json" \
127-
https://api.github.com/repos/pterodactyl/panel/releases |
128-
grep '"tag_name":' |
129-
sed -E 's/.*"([^"]+)".*/\1/' |
130-
sed "s/[v]//g"
131-
}
132-
133123
# Verify Compatibility #
134124
compatibility() {
135125
print "Checking if the addon is compatible with your panel..."
136126

137-
CREATE_ARRAY=$'\n' read -d "\034" -r -a array <<<"$(get_branch)\034" # https://unix.stackexchange.com/a/628543
138-
LATEST_VERSION="${array[0]}"
139-
PENULTIMATE_VERSION="${array[1]}"
140-
141127
sleep 2
142-
if [ "$PANEL_VERSION" == "$PENULTIMATE_VERSION" ] || [ "$PANEL_VERSION" == "$LATEST_VERSION" ]; then
128+
if [ "$PANEL_VERSION" == "1.7.0" ] || [ "$PANEL_VERSION" == "1.8.1" ]; then
143129
print "Compatible Version!"
144130
else
145131
print_error "Incompatible Version!"

themes/version1.x/Enola/build.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -120,26 +120,12 @@ fi
120120
update_variables
121121
}
122122

123-
# Get the latest and penultimate version of the pterodactyl #
124-
get_branch() {
125-
curl --silent \
126-
-H "Accept: application/vnd.github.v3+json" \
127-
https://api.github.com/repos/pterodactyl/panel/releases |
128-
grep '"tag_name":' |
129-
sed -E 's/.*"([^"]+)".*/\1/' |
130-
sed "s/[v]//g"
131-
}
132-
133123
# Verify Compatibility #
134124
compatibility() {
135125
print "Checking if the addon is compatible with your panel..."
136126

137-
CREATE_ARRAY=$'\n' read -d "\034" -r -a array <<<"$(get_branch)\034" # https://unix.stackexchange.com/a/628543
138-
LATEST_VERSION="${array[0]}"
139-
PENULTIMATE_VERSION="${array[1]}"
140-
141127
sleep 2
142-
if [ "$PANEL_VERSION" == "$PENULTIMATE_VERSION" ] || [ "$PANEL_VERSION" == "$LATEST_VERSION" ]; then
128+
if [ "$PANEL_VERSION" == "1.7.0" ] || [ "$PANEL_VERSION" == "1.8.1" ]; then
143129
print "Compatible Version!"
144130
else
145131
print_error "Incompatible Version!"

themes/version1.x/Twilight/build.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -120,26 +120,12 @@ fi
120120
update_variables
121121
}
122122

123-
# Get the latest and penultimate version of the pterodactyl #
124-
get_branch() {
125-
curl --silent \
126-
-H "Accept: application/vnd.github.v3+json" \
127-
https://api.github.com/repos/pterodactyl/panel/releases |
128-
grep '"tag_name":' |
129-
sed -E 's/.*"([^"]+)".*/\1/' |
130-
sed "s/[v]//g"
131-
}
132-
133123
# Verify Compatibility #
134124
compatibility() {
135125
print "Checking if the addon is compatible with your panel..."
136126

137-
CREATE_ARRAY=$'\n' read -d "\034" -r -a array <<<"$(get_branch)\034" # https://unix.stackexchange.com/a/628543
138-
LATEST_VERSION="${array[0]}"
139-
PENULTIMATE_VERSION="${array[1]}"
140-
141127
sleep 2
142-
if [ "$PANEL_VERSION" == "$PENULTIMATE_VERSION" ] || [ "$PANEL_VERSION" == "$LATEST_VERSION" ]; then
128+
if [ "$PANEL_VERSION" == "1.7.0" ] || [ "$PANEL_VERSION" == "1.8.1" ]; then
143129
print "Compatible Version!"
144130
else
145131
print_error "Incompatible Version!"

0 commit comments

Comments
 (0)