1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-06 05:42:06 +03:00

wsrep_sst_common: fix per shellcheck

shellcheck -s sh wsrep_sst_common.sh

In wsrep_sst_common.sh line 258:
        [ -n $3 ] && reval=$3
             ^-- SC2070: -n doesn't work with unquoted arguments. Quote or use [[ ]].
             ^-- SC2086: Double quote to prevent globbing and word splitting.
This commit is contained in:
Daniel Black
2018-03-07 14:36:40 +11:00
parent 7bd95307f2
commit 6aa22eaf62

View File

@@ -255,7 +255,7 @@ parse_cnf()
# use default if we haven't found a value
if [ -z $reval ]; then
[ -n $3 ] && reval=$3
[ -n "$3" ] && reval=$3
fi
echo $reval
}