Check that version is actually newer via compareVersions

This commit is contained in:
Matthew Bauer 2018-03-19 12:18:44 -05:00
parent 23ecf1eebf
commit cddfe9418b

5
up.sh
View File

@ -23,6 +23,11 @@ function error_exit {
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
case "$PACKAGE_NAME" in
*jquery*) error_exit "this isn't a real package";;