Skip to content

Commit c50858b

Browse files
committed
Make oieserver compatible with apple bash
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
1 parent 5ff9715 commit c50858b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/basedir-includes/oieserver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ expand_line_variables() {
9999
# Get the variable name and its value.
100100
local var_name="${BASH_REMATCH[2]}"
101101
# Use indirect expansion to get the variable's value. Do not replace if not set.
102-
if [[ -v "$var_name" ]]; then
102+
if [[ -n "${!var_name+x}" ]]; then
103103
local var_value="${!var_name}"
104104
result_line+="$var_value"
105105
else

0 commit comments

Comments
 (0)