Fix double checking of "unzip" dependency and add printDebug.sh tool.

This commit is contained in:
purple 2023-09-03 14:12:36 +02:00
parent 3eb0be9082
commit 4d9485a034
4 changed files with 9 additions and 3 deletions

View file

@ -150,9 +150,6 @@ depend() {
fi; if ! [ -x "$(command -v yarn)" ]; then fi; if ! [ -x "$(command -v yarn)" ]; then
log_red '[FATAL] Required dependency yarn is not installed or detected.' >&2 log_red '[FATAL] Required dependency yarn is not installed or detected.' >&2
DEPEND_MISSING=true DEPEND_MISSING=true
fi; if ! [ -x "$(command -v unzip)" ]; then
log_red '[FATAL] Required dependency unzip is not installed or detected.' >&2
DEPEND_MISSING=true
fi; if ! [ -x "$(command -v zip)" ]; then fi; if ! [ -x "$(command -v zip)" ]; then
log_red '[FATAL] Required dependency zip is not installed or detected.' >&2 log_red '[FATAL] Required dependency zip is not installed or detected.' >&2
DEPEND_MISSING=true DEPEND_MISSING=true

View file

@ -3,4 +3,5 @@ These scripts are meant for simplifying bug testing and development and will pro
All tools are meant to not interact with Blueprint while changing core files. All tools are meant to not interact with Blueprint while changing core files.
* printDebug.sh `[path to pterodactyl]`
* update.sh `[path to pterodactyl]` `(dev)` * update.sh `[path to pterodactyl]` `(dev)`

7
tools/printDebug.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
# $1 Pterodactyl directory (pterodactyl)
cd $1/.blueprint;
cat data/internal/debug/logs.txt

View file

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
# $1 Pterodactyl directory (pterodactyl) # $1 Pterodactyl directory (pterodactyl)
# $2 Dev release (dev)
cd $1/tools/tmp; cd $1/tools/tmp;