Skip to content

Commit e48ce0c

Browse files
committed
Update
1 parent 2f0467b commit e48ce0c

File tree

8 files changed

+532
-684
lines changed

8 files changed

+532
-684
lines changed

backup.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,14 @@ delete_files() {
8080
#### THEMES DRACULA, ENOLA AND TWILIGHT ####
8181
if [ -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"
8484
fi
8585
#### THEMES DRACULA, ENOLA AND TWILIGHT ####
8686

8787
#### THEME ZINGTHEME ####
8888
if [ -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"
9291
fi
9392
#### THEME ZINGTHEME ####
9493

install.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,20 @@ set -e
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

1927
print_brake() {

0 commit comments

Comments
 (0)