mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
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:
parent
c0d7a054cb
commit
7a9784c571
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue