From 1609482ff9073ae5ddf888d9c52283e6b9c7d8e5 Mon Sep 17 00:00:00 2001 From: Matt Blum Date: Wed, 4 Mar 2026 11:32:36 -0600 Subject: [PATCH] a few more misc bugfixes --- flex_ini.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flex_ini.sh b/flex_ini.sh index ff12ffe..99b415e 100644 --- a/flex_ini.sh +++ b/flex_ini.sh @@ -36,7 +36,7 @@ if [[ "${BASH_VERSINFO[0]}" -lt 4 ]]; then echo "Error: FlexIni requires bash 4.0 or higher for associative arrays" echo "Current bash version: ${BASH_VERSION}" echo "On macOS, install newer bash with: brew install bash" - exit 1 + return 1 2>/dev/null || exit 1 fi declare -gA ini_associations @@ -136,7 +136,7 @@ private_get_ini_file_path() { local ini_identifier=$(private_flex_ini_format_id "$1") local FILE_PATH="${ini_associations[$ini_identifier]}" if [ -z "$FILE_PATH" ]; then - log error "Error, no file associated with the ini id ${ini_identifier}" + private_flex_ini_error "no file associated with the ini id ${ini_identifier}" return 1 fi echo "${FILE_PATH}" @@ -223,7 +223,7 @@ flex_ini_reload() { local ini_identifier=$(private_flex_ini_format_id "$1") local destination_ini_path=$(private_get_ini_file_path "$ini_identifier") if [ -z "$destination_ini_path" ]; then - echo "[ Flex INI Error ] No INI filepath could be found from which to reload. Are you sure you loaded the config file for ${ini_identifier}?" + private_flex_ini_error "No INI filepath could be found from which to reload. Are you sure you loaded the config file for ${ini_identifier}?" return 1 fi flex_ini_clear "$ini_identifier"