mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +00:00
S14postupgrade: use semver-sort
This commit is contained in:
parent
6fe7087e97
commit
6d374f64b7
@ -17,7 +17,7 @@ test "${hash}" == "${sys_hash}" && exit 0
|
||||
test -d ${POST_UPGRADE_DIR} || exit 0
|
||||
|
||||
function version_gt() {
|
||||
if [[ "$1" != "$2" ]] && [[ $(echo -e "$2\n$1" | sort -t . | head -n 1) == "$2" ]]; then
|
||||
if [[ "$1" != "$2" ]] && [[ $(echo -e "$2\n$1" | semver-sort | head -n 1) == "$2" ]]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user