File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
themes/version1.x/AnimatedGraphics Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
2828
2929# Update Variables #
3030update_variables () {
31+ BIGGER_CONSOLE=" $PTERO /resources/scripts/components/server/StatGraphs.tsx"
3132CONFIG_FILE=" $PTERO /config/app.php"
3233PANEL_VERSION=" $( grep " 'version'" " $CONFIG_FILE " | cut -c18-25 | sed " s/[',]//g" ) "
3334}
@@ -182,6 +183,17 @@ cp -rf -- $PTERO/temp/AnimatedGraphics/* $PTERO
182183rm -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 #
186198production () {
187199print " 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
You can’t perform that action at this time.
0 commit comments