OSDN Git Service

[fix] : Supports uppercase Bool
authorhayao <hayao@fascode.net>
Thu, 9 Sep 2021 03:26:05 +0000 (12:26 +0900)
committerhayao <hayao@fascode.net>
Thu, 9 Sep 2021 03:26:05 +0000 (12:26 +0900)
build.sh

index 07f42e1..ff388aa 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -299,7 +299,8 @@ check_bool() {
     for _variable in "${@}"; do
         msg_debug -n "Checking ${_variable}..."
         eval ": \${${_variable}:=''}"
-        _value="$(eval echo "\$${_variable}")"
+        _value="$(eval echo "\${${_variable},,}")"
+        eval "${_variable}=${_value}"
         if [[ ! -v "${1}" ]] || [[ "${_value}"  = "" ]]; then
             [[ "${debug}" = true ]] && echo ; msg_error "The variable name ${_variable} is empty." "1"
         elif [[ ! "${_value}" = "true" ]] && [[ ! "${_value}" = "false" ]]; then