Skip to content

Commit

Permalink
wsrep_sst_common: fix per shellcheck
Browse files Browse the repository at this point in the history
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.
2 changes: 1 addition & 1 deletion scripts/wsrep_sst_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.