SC2086 double quote

Double quote to prevent globbing and word splitting.
https://github.com/koalaman/shellcheck/wiki/SC2086

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
This commit is contained in:
Andrew Hsu committed 2017-07-11 00:38:50 +00:00
1 parent 8950614208
commit dda857ecfa
1 file changed
+3 -3
+3 -3
View File
@@ -262,14 +262,14 @@ do_install() {
MAJOR_W=1
MINOR_W=10
semverParse $version
semverParse "$version"
shouldWarn=0
if [ $major -lt $MAJOR_W ]; then
if [ "$major" -lt "$MAJOR_W" ]; then
shouldWarn=1
fi
if [ $major -le $MAJOR_W ] && [ $minor -lt $MINOR_W ]; then
if [ "$major" -le "$MAJOR_W" ] && [ "$minor" -lt "$MINOR_W" ]; then
shouldWarn=1
fi