Skip to content

Commit 6a7f26f

Browse files
authored
Update build.sh
1 parent 609e80a commit 6a7f26f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

themes/version1.x/Twilight/build.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set -e
1414

1515
#### Variables ####
1616
SCRIPT_VERSION="v0.1"
17-
TWILIGHT="https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION}/themes/version1.x/Twilight/admin.css"
17+
TWILIGHT="https://pterothemes.gq/latest/Twilight/admin.css"
1818
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1919

2020

@@ -98,14 +98,13 @@ echo -e "* ${GREEN}Downloading files...${reset}"
9898
print_brake 25
9999
download_files() {
100100
cd /var/www/pterodactyl/resources/scripts
101-
curl -o user.css https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/main/themes/version1.x/Twilight/user.css
102-
curl -o admin.css https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/main/themes/version1.x/Twilight/admin.css
101+
curl -o user.css https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION}/themes/version1.x/Twilight/user.css
103102
rm -R index.tsx
104-
curl -o index.tsx https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/main/themes/version1.x/Twilight/index.tsx
103+
curl -o index.tsx https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION}/themes/version1.x/Twilight/index.tsx
105104
cd
106105
cd /var/www/pterodactyl/resources/views/layouts
107106
rm -R admin.blade.php
108-
curl -o admin.blade.php https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/main/themes/version1.x/Twilight/admin.blade.php
107+
curl -o admin.blade.php https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION}/themes/version1.x/Twilight/admin.blade.php
109108
sed -i -e "s@<STYLE-ADMIN>@${TWILIGHT}@g" /var/www/pterodactyl/resources/views/layouts/admin.blade.php
110109
}
111110

0 commit comments

Comments
 (0)