Update build.func

This commit is contained in:
CanbiZ 2025-03-26 19:06:48 +01:00 committed by GitHub
parent 6a89a111f5
commit e5cf04ab16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,10 +119,11 @@ stop_spinner() {
SPINNER_ACTIVE=0 SPINNER_ACTIVE=0
} }
declare -A MSG_INFO_SHOWN
msg_info() { msg_info() {
local msg="$1" local msg="$1"
if ! declare -p MSG_INFO_SHOWN &>/dev/null; then
declare -gA MSG_INFO_SHOWN
fi
if [[ -n "${MSG_INFO_SHOWN["$msg"]}" ]]; then if [[ -n "${MSG_INFO_SHOWN["$msg"]}" ]]; then
return return
fi fi