mirror of
https://github.com/friendica/docker
synced 2026-01-02 08:53:33 +01:00
Bugfixing version_greater() method
This commit is contained in:
parent
046099aba3
commit
2afdf08eed
12 changed files with 50 additions and 10 deletions
|
|
@ -12,7 +12,7 @@ run_as() {
|
|||
|
||||
# checks if the the first parameter is greater than the second parameter
|
||||
version_greater() {
|
||||
[ "$(printf '%s\n' "$@" | sort -t '.' -n -k1,1 -k2,2 | head -n 1)" != "$1" ]
|
||||
[ "$(printf '%s\n' "$@" | sort -r -t '-' -k2,2 | sort -t '.' -n -k1,1 -k2,2 -s | head -n 1)" != "$1" ]
|
||||
}
|
||||
|
||||
# clones the whole develop branch (Friendica and Addons)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue