File tree Expand file tree Collapse file tree 8 files changed +532
-684
lines changed
Expand file tree Collapse file tree 8 files changed +532
-684
lines changed Original file line number Diff line number Diff line change @@ -80,15 +80,14 @@ delete_files() {
8080# ### THEMES DRACULA, ENOLA AND TWILIGHT ####
8181if [ -f " $DET " ]; then
8282 rm -r " $DET "
83- rm -r " $PTERO /public/themes/pterodactyl/css/admin .css"
83+ rm -r " $PTERO /resources/scritps/user .css"
8484fi
8585# ### THEMES DRACULA, ENOLA AND TWILIGHT ####
8686
8787# ### THEME ZINGTHEME ####
8888if [ -f " $ZING " ]; then
8989 rm -r " $ZING "
9090 rm -r " $PTERO /resources/scripts/components/server/files/FileViewer.tsx"
91- rm -r " $PTERO /resources/scripts/components/SidePanel.tsx"
9291fi
9392# ### THEME ZINGTHEME ####
9493
Original file line number Diff line number Diff line change 88#
99# Created and maintained by Ferks-FK
1010#
11- # Protected by GPL 3.0 License
11+ # Protected by MIT License
1212#
1313# #######################################################
1414
15+ # Get the latest version before running the script #
16+ get_release () {
17+ curl --silent \
18+ -H " Accept: application/vnd.github.v3+json" \
19+ https://api.github.com/repos/Ferks-FK/Pterodactyl-AutoThemes/releases/latest |
20+ grep ' "tag_name":' |
21+ sed -E ' s/.*"([^"]+)".*/\1/'
22+ }
1523
16- SCRIPT_VERSION=" v1.3 "
24+ SCRIPT_VERSION=" $( get_release ) "
1725
1826
1927print_brake () {
You can’t perform that action at this time.
0 commit comments