mirror of
https://github.com/docker/docker-install.git
synced 2026-11-20 10:03:11 +03:00
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:
1 parent
8950614208
commit
dda857ecfa
1 file changed
+3
-3
+3
-3
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user