Skip to content

Commit 0b0fad0

Browse files
authored
Merge pull request goharbor#7757 from reasonerjt/install-sh-chk
Fix a bug of checking docker version in install.sh
2 parents 286167a + b802f14 commit 0b0fad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function check_docker {
101101
docker_version_part2=${BASH_REMATCH[3]}
102102

103103
# the version of docker does not meet the requirement
104-
if [ "$docker_version" -lt 17 ] || ([ "$docker_version" -eq 17 ] && [ "$docker_version_part1" -lt 6 ])
104+
if [ "$docker_version_part1" -lt 17 ] || ([ "$docker_version_part1" -eq 17 ] && [ "$docker_version_part2" -lt 6 ])
105105
then
106106
error "Need to upgrade docker package to 17.06.0+."
107107
exit 1

0 commit comments

Comments
 (0)