mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03: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 New Issue
Block a user