3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #32328 from benley/dropbox-wrapper

dropbox: fix version sort order
This commit is contained in:
Thomas Tuegel 2017-12-05 05:56:36 -06:00 committed by GitHub
commit f3cf114878
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ buildFHSUserEnv {
do_install=1
else
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
do_install=1
fi