@@ -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-
3424GITHUB_STATUS_URL=" https://www.githubstatus.com"
3525SCRIPT_VERSION=" $( get_release) "
3626
@@ -131,15 +121,11 @@ bash <(curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes
131121
132122
133123while [ " $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)"
0 commit comments