From d9639729377839828270d391198b98ea78b87d12 Mon Sep 17 00:00:00 2001 From: purple Date: Sun, 19 Nov 2023 14:49:32 +0100 Subject: [PATCH] feat(core): add outdated version warning to -init when version is outdated --- blueprint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/blueprint.sh b/blueprint.sh index b74d4eb..41af51d 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -1121,6 +1121,7 @@ if [[ ( $2 == "-init" || $2 == "-I" ) ]]; then VCMD="y" tnum=${ASKTEMPLATE} log_bright "[INFO] Downloading templates from 'teamblueprint/templates'.." + if [[ $(php artisan bp:latest) != "$VERSION" ]]; then log_yellow "[WARNING] Your Blueprint installation version is outdated, some templates might break or show random bugs." cd .blueprint/tmp git clone "https://github.com/teamblueprint/templates.git" cd ${FOLDER}/.blueprint