diff options
author | Daniel Black <daniel@linux.vnet.ibm.com> | 2018-03-07 14:36:40 +1100 |
---|---|---|
committer | Daniel Black <daniel@linux.vnet.ibm.com> | 2018-03-07 14:36:40 +1100 |
commit | 6aa22eaf62ab6cd78073efbddbc2ff3b5f11883d (patch) | |
tree | 23dc5008c37e0718022cb5949b891894efdb7583 /scripts | |
parent | 7bd95307f2aa901c141d4d6c4c568a2ed85ba01b (diff) | |
download | mariadb-git-6aa22eaf62ab6cd78073efbddbc2ff3b5f11883d.tar.gz |
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.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/wsrep_sst_common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wsrep_sst_common.sh b/scripts/wsrep_sst_common.sh index b9d9d04fef6..7f3fe23e0c4 100644 --- a/scripts/wsrep_sst_common.sh +++ b/scripts/wsrep_sst_common.sh @@ -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 } |