Skip to content

Commit 581aaea

Browse files
committed
[fix] : Fixed SC2086 (check_bool)
1 parent 36e6824 commit 581aaea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ check_bool() {
301301
local _value _variable
302302
for _variable in "${@}"; do
303303
msg_debug -n "Checking ${_variable}..."
304-
eval ': ${'${_variable}':=""}'
305-
_value="$(eval echo '$'${_variable})"
304+
eval ": \${${_variable}:=''}"
305+
_value="$(eval echo "\$${_variable}")"
306306
if [[ ! -v "${1}" ]] || [[ "${_value}" = "" ]]; then
307307
[[ "${debug}" = true ]] && echo ; msg_error "The variable name ${_variable} is empty." "1"
308308
elif [[ ! "${_value}" = "true" ]] && [[ ! "${_value}" = "false" ]]; then

0 commit comments

Comments
 (0)