mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-19 18:36:09 +02:00
Update docker-entrypoint.sh
Co-authored-by: J0WI <J0WI@users.noreply.github.com> Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>
This commit is contained in:
parent
036daeefd1
commit
33024932b7
1 changed files with 1 additions and 3 deletions
|
@ -8,9 +8,7 @@ version_greater() {
|
|||
|
||||
# version_too_far_apart A B returns whether the major version of A is more than that of B + 1
|
||||
version_too_far_apart() {
|
||||
local majorImage=`echo $1 | sed -e 's/\..*//'`
|
||||
local majorInstalled=`echo $2 | sed -e 's/\..*//'`
|
||||
[ $majorImage -gt $(echo $majorInstalled + 1 | bc) ]
|
||||
[ ${majorImage%%.*} -gt $((${majorInstalled%%.*} + 1)) ]
|
||||
}
|
||||
|
||||
# return true if specified directory is empty
|
||||
|
|
Loading…
Add table
Reference in a new issue