Skip to content
Permalink
Browse files
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.
  • Loading branch information
grooverdan committed Mar 7, 2018
1 parent 7bd9530 commit 6aa22ea
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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
}

0 comments on commit 6aa22ea

Please sign in to comment.