feat(core): Improve placeholder logs by grouping them.

This commit is contained in:
purple 2023-11-01 15:32:11 +01:00
parent 5b8124d5c5
commit 9c41a5fbcb

View file

@ -78,7 +78,7 @@ if [[ ! -f ".blueprint/lib/parse_yaml.sh" ]]; then LIB__parse_yaml
if [[ ! -f ".blueprint/lib/db.sh" ]]; then LIB__db="missing"; fi if [[ ! -f ".blueprint/lib/db.sh" ]]; then LIB__db="missing"; fi
if [[ ! -f ".blueprint/lib/telemetry.sh" ]]; then LIB__telemetry="missing"; fi if [[ ! -f ".blueprint/lib/telemetry.sh" ]]; then LIB__telemetry="missing"; fi
if [[ ! -f ".blueprint/lib/updateAdminCacheReminder.sh" ]]; then LIB__updateAdminCacheReminder="missing"; fi if [[ ! -f ".blueprint/lib/updateAdminCacheReminder.sh" ]]; then LIB__updateAdminCacheReminder="missing"; fi
if [[ ! -f ".blueprint/lib/grabenv.sh" ]]; then LIB__grabEnv="missing"; fi if [[ ! -f ".blueprint/lib/grabenv.sh" ]]; then LIB__grabEnv="missing"; fi
# Fallback to these functions if "bash_colors.sh" is missing # Fallback to these functions if "bash_colors.sh" is missing
if [[ $LIB__bash_colors == "missing" ]]; then if [[ $LIB__bash_colors == "missing" ]]; then
@ -455,6 +455,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y"
SKIPAZPLACEHOLDERS=false SKIPAZPLACEHOLDERS=false
fi fi
log_bright log_bold "[INFO] Applying placeholders.."
PLACE_PLACEHOLDERS() { PLACE_PLACEHOLDERS() {
local dir="$1" local dir="$1"
for file in "$dir"/*; do for file in "$dir"/*; do
@ -480,7 +481,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y"
sed -i "s~__blueprintversion__~$VERSION~g" "$file" sed -i "s~__blueprintversion__~$VERSION~g" "$file"
fi fi
log_bright "[INFO] Done placeholders in '$file'." log_bright " - ${file}"
elif [ -d "$file" ]; then elif [ -d "$file" ]; then
PLACE_PLACEHOLDERS "$file" PLACE_PLACEHOLDERS "$file"
fi fi