dropbox: fix version sort order

This makes the startup wrapper work as intended instead of
re-downgrading Dropbox after each time it updates itself.
This commit is contained in:
Benjamin Staffin 2017-12-04 18:54:48 -05:00
parent c0d7a054cb
commit 7a9784c571
No known key found for this signature in database
GPG Key ID: A490C0134E09AF4A

View File

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