update: better version and empty root directory checking for mp-build and mp-check

This commit is contained in:
ngn
2024-08-25 14:56:58 +03:00
parent 4cee462e70
commit ec9781a5b6
4 changed files with 69 additions and 3 deletions

View File

@ -228,6 +228,17 @@ check_pkg_vars() {
return 1 ;;
esac
case "${VERSION}" in
*_*)
error "Package version contains an invalid character: \"_\""
unset_indent
return 1 ;;
*" "*)
error "Package version contains an invalid character: \" \""
unset_indent
return 1 ;;
esac
return 0
}