fix(core): Random debug file not found error on -export with custom scripts

This commit is contained in:
prplwtf 2023-11-24 20:23:21 +01:00
parent 29623dc002
commit 703ccbfe84

View file

@ -1195,9 +1195,7 @@ if [[ ( $2 == "-export" || $2 == "-e" ) ]]; then VCMD="y"
cp -R dev/* tmp/
cd tmp || throw 'cdMissingDirectory'
# do compilation crap
if [[ ( $conf_info_flags == *"hasExportScript,"* ) || ( $conf_info_flags == *"hasExportScript" ) ]]; then
log_yellow "[WARNING] This extension uses a custom export script, proceed with caution."
chmod +x "${conf_data_directory}""/export.sh"
# Run script while also parsing some useful variables for the export script to use.
BLUEPRINT_EXPORT_DIRECTORY="$FOLDER/.blueprint/tmp" BLUEPRINT_VERSION="$VERSION" bash "${conf_data_directory}""/export.sh"