Skip to content

Commit 621ec6b

Browse files
committed
[fix] : Supports uppercase Bool
1 parent 7250c77 commit 621ec6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ check_bool() {
299299
for _variable in "${@}"; do
300300
msg_debug -n "Checking ${_variable}..."
301301
eval ": \${${_variable}:=''}"
302-
_value="$(eval echo "\$${_variable}")"
302+
_value="$(eval echo "\${${_variable},,}")"
303+
eval "${_variable}=${_value}"
303304
if [[ ! -v "${1}" ]] || [[ "${_value}" = "" ]]; then
304305
[[ "${debug}" = true ]] && echo ; msg_error "The variable name ${_variable} is empty." "1"
305306
elif [[ ! "${_value}" = "true" ]] && [[ ! "${_value}" = "false" ]]; then

0 commit comments

Comments
 (0)