Merge pull request #32328 from benley/dropbox-wrapper
dropbox: fix version sort order
This commit is contained in:
commit
f3cf114878
@ -54,7 +54,7 @@ buildFHSUserEnv {
|
|||||||
do_install=1
|
do_install=1
|
||||||
else
|
else
|
||||||
installed_version=$(cat "$HOME/.dropbox-dist/VERSION")
|
installed_version=$(cat "$HOME/.dropbox-dist/VERSION")
|
||||||
latest_version=$(printf "${version}\n$installed_version\n" | sort -V | head -n 1)
|
latest_version=$(printf "${version}\n$installed_version\n" | sort -rV | head -n 1)
|
||||||
if [ "x$installed_version" != "x$latest_version" ]; then
|
if [ "x$installed_version" != "x$latest_version" ]; then
|
||||||
do_install=1
|
do_install=1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user