Commit 104089e1 authored by Jan Lindström's avatar Jan Lindström

MDEV-15512 - Fix sh parse error when [sst] config value has spaces.

Merged https://github.com/MariaDB/server/pull/617 authored by
Colin Mollenhour.
parent 6c588c92
......@@ -277,8 +277,8 @@ parse_cnf()
reval=$($MY_PRINT_DEFAULTS "${group}" | awk -v var="${var}" 'BEGIN { OFS=FS="=" } { gsub(/_/,"-",$1); if ( $1=="--"var) lastval=substr($0,length($1)+2) } END { print lastval}')
# use default if we haven't found a value
if [ -z $reval ]; then
[ -n $3 ] && reval=$3
if [ -z "$reval" ]; then
[ -n "$3" ] && reval=$3
fi
echo $reval
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment