diff options
author | Benjamin Staffin <benley@gmail.com> | 2017-12-04 18:54:48 -0500 |
---|---|---|
committer | Benjamin Staffin <benley@gmail.com> | 2017-12-04 18:56:18 -0500 |
commit | 7a9784c571a89455c88c7d79bab87b6d704944ae (patch) | |
tree | f64e326f5d2eb0d600324722efca38ac02bbdaba /pkgs/applications/networking/dropbox/default.nix | |
parent | c0d7a054cb6258a03597320ca6b156ce1a8be5f9 (diff) | |
download | nixlib-7a9784c571a89455c88c7d79bab87b6d704944ae.tar nixlib-7a9784c571a89455c88c7d79bab87b6d704944ae.tar.gz nixlib-7a9784c571a89455c88c7d79bab87b6d704944ae.tar.bz2 nixlib-7a9784c571a89455c88c7d79bab87b6d704944ae.tar.lz nixlib-7a9784c571a89455c88c7d79bab87b6d704944ae.tar.xz nixlib-7a9784c571a89455c88c7d79bab87b6d704944ae.tar.zst nixlib-7a9784c571a89455c88c7d79bab87b6d704944ae.zip |
dropbox: fix version sort order
This makes the startup wrapper work as intended instead of re-downgrading Dropbox after each time it updates itself.
Diffstat (limited to 'pkgs/applications/networking/dropbox/default.nix')
-rw-r--r-- | pkgs/applications/networking/dropbox/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/networking/dropbox/default.nix b/pkgs/applications/networking/dropbox/default.nix index e9d6c5f306f0..64d42835df27 100644 --- a/pkgs/applications/networking/dropbox/default.nix +++ b/pkgs/applications/networking/dropbox/default.nix @@ -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 |