feat core: Only place legacy placeholders if using alpha or indev as target version

This commit is contained in:
prplwtf 2024-04-06 18:10:01 +02:00
parent b5ff1bb2b5
commit 1bceb1d65b

View file

@ -547,6 +547,8 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
installation_timestamp=$(date +%s)
if [[ $dev == true ]]; then INSTALLMODE="developer"; fi
if [[ $target == "alpha-"* ]] \
|| [[ $target == "indev-"* ]]; then
PLACE_PLACEHOLDERS() {
local dir="$1"
for file in "$dir"/*; do
@ -587,6 +589,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
}
PLACE_PLACEHOLDERS "$DIR"
fi
fi
if [[ $name == "" ]]; then rm -R ".blueprint/tmp/$n"; PRINT FATAL "'info_name' is a required configuration option.";exit 1;fi
if [[ $identifier == "" ]]; then rm -R ".blueprint/tmp/$n"; PRINT FATAL "'info_identifier' is a required configuration option.";exit 1;fi