mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-12-18 00:41:49 +03:00
Merge pull request #22 from matthewbauer/version-check
Check that version is actually newer via compareVersions
This commit is contained in:
commit
d425c5cfc9
5
up.sh
5
up.sh
@ -23,6 +23,11 @@ function error_exit {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ! [ $(nix-instantiate --eval -E "builtins.compareVersions '$NEW_VERSION' '$OLD_VERSION'") -eq 1 ];
|
||||||
|
then
|
||||||
|
error_exit "$NEW_VERSION is not newer than $OLD_VERSION according to Nix"
|
||||||
|
fi
|
||||||
|
|
||||||
# Package blacklist
|
# Package blacklist
|
||||||
case "$PACKAGE_NAME" in
|
case "$PACKAGE_NAME" in
|
||||||
*jquery*) error_exit "this isn't a real package";;
|
*jquery*) error_exit "this isn't a real package";;
|
||||||
|
Loading…
Reference in New Issue
Block a user