From 7a9784c571a89455c88c7d79bab87b6d704944ae Mon Sep 17 00:00:00 2001 From: Benjamin Staffin Date: Mon, 4 Dec 2017 18:54:48 -0500 Subject: [PATCH] dropbox: fix version sort order This makes the startup wrapper work as intended instead of re-downgrading Dropbox after each time it updates itself. --- pkgs/applications/networking/dropbox/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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