Development files disappeared after exporting, this is now fixed.
This commit is contained in:
parent
78d9a2041f
commit
f5eed6a521
1 changed files with 10 additions and 5 deletions
15
blueprint.sh
15
blueprint.sh
|
@ -49,6 +49,9 @@ source .blueprint/lib/parse_yaml.sh;
|
||||||
source .blueprint/lib/db.sh;
|
source .blueprint/lib/db.sh;
|
||||||
source .blueprint/lib/telemetry.sh;
|
source .blueprint/lib/telemetry.sh;
|
||||||
|
|
||||||
|
# Re-create "tmp" folder just in case.
|
||||||
|
mkdir .blueprint/.storage/tmp > /dev/null;
|
||||||
|
|
||||||
# -exec
|
# -exec
|
||||||
if [[ "$1" == *"-exec"* ]]; then
|
if [[ "$1" == *"-exec"* ]]; then
|
||||||
# Update the telemetry id to argument.
|
# Update the telemetry id to argument.
|
||||||
|
@ -441,16 +444,18 @@ if [[ ( $2 == "-build" ) || ( $2 == "-test" ) ]]; then
|
||||||
sendTelemetry "BUILD_DEVELOPMENT_EXTENSION" > /dev/null;
|
sendTelemetry "BUILD_DEVELOPMENT_EXTENSION" > /dev/null;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
# -export
|
||||||
if [[ $2 == "-export" ]]; then
|
if [[ $2 == "-export" ]]; then
|
||||||
log_yellow "[WARNING] This is an experimental feature, proceed with caution.";
|
log_yellow "[WARNING] This is an experimental feature, proceed with caution.";
|
||||||
log_bright "[INFO] Exporting extension files located in '.blueprint/.development'.";
|
log_bright "[INFO] Exporting extension files located in '.blueprint/.development'.";
|
||||||
|
|
||||||
cd .blueprint
|
cd .blueprint;
|
||||||
eval $(parse_yaml .development/conf.yml)
|
eval $(parse_yaml .development/conf.yml);
|
||||||
mkdir .storage/tmp/$info_identifier
|
mkdir .storage/tmp/$info_identifier;
|
||||||
mv .development/* .storage/tmp/$info_identifier/
|
cp -R .development/* .storage/tmp/$info_identifier/;
|
||||||
zip .storage/tmp/blueprint.zip .storage/tmp/$info_identifier
|
zip .storage/tmp/blueprint.zip .storage/tmp/$info_identifier;
|
||||||
mv .storage/tmp/blueprint.zip ../$info_identifier.blueprint;
|
mv .storage/tmp/blueprint.zip ../$info_identifier.blueprint;
|
||||||
|
rm -R .storage/tmp/*;
|
||||||
|
|
||||||
log_bright "[INFO] Extension files should be exported into your Pterodactyl directory now.";
|
log_bright "[INFO] Extension files should be exported into your Pterodactyl directory now.";
|
||||||
fi;
|
fi;
|
||||||
|
|
Loading…
Reference in a new issue