2024-06-27 16:12:34 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
Command() {
|
|
|
|
# Check for developer mode through the database library.
|
|
|
|
if ! dbValidate "blueprint.developerEnabled"; then PRINT FATAL "Developer mode is not enabled.";exit 2; fi
|
|
|
|
|
|
|
|
if [[ -z $(find .blueprint/dev -maxdepth 1 -type f -not -name ".gitkeep" -print -quit) ]]; then
|
|
|
|
PRINT FATAL "Development directory is empty."
|
|
|
|
exit 2
|
|
|
|
fi
|
2024-09-04 15:20:54 -04:00
|
|
|
|
|
|
|
if [[ -f ".blueprint/dev/.gitkeep" ]]; then
|
|
|
|
rm .blueprint/dev/.gitkeep 2>> "$BLUEPRINT__DEBUG"
|
|
|
|
fi
|
|
|
|
|
2024-06-27 16:12:34 -04:00
|
|
|
PRINT INFO "Starting developer extension installation.."
|
|
|
|
blueprint -add "[developer-build]"
|
|
|
|
}
|