add check repos for release build

parent 588c6a5c
......@@ -44,6 +44,23 @@ print_build_info() {
print_green "REPOSITORIES: $REPOS"
}
check_repos () {
if [ "$VER" == "devel" ]; then
return
fi
local list_repos
list_repos="${1//,/ }"
for repo in $list_repos; do
case "$repo" in
ximper-devel|hasher)
print_error "Использовать репозитории ximper-devel и hasher можно только в devel сборках."
exit 1
;;
esac
done
}
cleartmp() {
[ "$CLEAN" == true ] || return
echo "____________________"
......@@ -256,6 +273,8 @@ else
exit 1
fi
check_repos "$REPOS"
print_build_info
# Генерация списка задач на сборку
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment