0
0
Fork 0
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:
Antonin Delpeuch 2023-07-07 22:08:41 +02:00 committed by GitHub
parent 036daeefd1
commit 33024932b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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