Skip to content

Commit 96a5b97

Browse files
committed
Update
1 parent 82bb53b commit 96a5b97

File tree

1 file changed

+14
-0
lines changed
  • themes/version1.x/AnimatedGraphics

1 file changed

+14
-0
lines changed

themes/version1.x/AnimatedGraphics/build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
2828

2929
# Update Variables #
3030
update_variables() {
31+
BIGGER_CONSOLE="$PTERO/resources/scripts/components/server/StatGraphs.tsx"
3132
CONFIG_FILE="$PTERO/config/app.php"
3233
PANEL_VERSION="$(grep "'version'" "$CONFIG_FILE" | cut -c18-25 | sed "s/[',]//g")"
3334
}
@@ -182,6 +183,17 @@ cp -rf -- $PTERO/temp/AnimatedGraphics/* $PTERO
182183
rm -rf $PTERO/temp
183184
}
184185

186+
# Check if another conflicting addon is installed #
187+
check_conflict() {
188+
print "Checking if a similar/conflicting addon is already installed..."
189+
190+
sleep 2
191+
if grep -q "Installed by Auto-Addons" "$BIGGER_CONSOLE"; then
192+
print_warning "The theme ${YELLOW}Bigger Console${RESET} is already installed, aborting..."
193+
exit 1
194+
fi
195+
}
196+
185197
# Panel Production #
186198
production() {
187199
print "Producing panel..."
@@ -214,6 +226,7 @@ if [ "$PTERO_INSTALL" == true ]; then
214226
print "Installation of the panel found, continuing the installation..."
215227

216228
compatibility
229+
check_conflict
217230
dependencies
218231
backup
219232
download_files
@@ -230,6 +243,7 @@ if [ "$PTERO_INSTALL" == true ]; then
230243
echo "$MANUAL_DIR" >> "$INFORMATIONS/custom_directory.txt"
231244
update_variables
232245
compatibility
246+
check_conflict
233247
dependencies
234248
backup
235249
download_files

0 commit comments

Comments
 (0)