From 3ca3adca2a5bf3af536d9d1810ecafcad3bc3ff6 Mon Sep 17 00:00:00 2001 From: purple Date: Fri, 4 Aug 2023 12:46:57 +0200 Subject: [PATCH] Require development files before building --- blueprint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blueprint.sh b/blueprint.sh index da0b090..28be0e7 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -833,6 +833,11 @@ fi; # -build if [[ $2 == "-build" ]]; then + if [[ -n $(find .blueprint/dev -maxdepth 1 -type f -not -name "README.md" -print -quit) ]]; then + echo "ok" > /dev/null + else + quit_red "[FATAL] You do not have any development files." + fi; log_bright "[INFO] Installing development extension files.."; blueprint -i test␀; log_bright "[INFO] Extension installation ends here, if there are any errors during installation, fix them and try again.";