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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user