mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-12-17 08:21:44 +03:00
get arguments from packages-to-update, fix version comparison syntax error
This commit is contained in:
parent
d425c5cfc9
commit
ba6f302cd1
2
up.sh
2
up.sh
@ -23,7 +23,7 @@ function error_exit {
|
||||
exit 1
|
||||
}
|
||||
|
||||
if ! [ $(nix-instantiate --eval -E "builtins.compareVersions '$NEW_VERSION' '$OLD_VERSION'") -eq 1 ];
|
||||
if ! [ "$(nix eval -f . "(builtins.compareVersions \"$NEW_VERSION\" \"$OLD_VERSION\")")" -eq 1 ];
|
||||
then
|
||||
error_exit "$NEW_VERSION is not newer than $OLD_VERSION according to Nix"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user