update build.func

This commit is contained in:
Michel Roegl-Brunner 2025-02-03 11:51:49 +01:00
parent 451e6e31e2
commit 3e189531c6

View File

@ -733,7 +733,8 @@ config_file(){
exit
fi
if [[ ! -z "$CT_ID" ]]; then
if [[ -n "$CT_ID" ]]; then
if [[ "$CT_ID" =~ ^([0-9]{3,4})-([0-9]{3,4})$ ]]; then
MIN_ID=${BASH_REMATCH[1]}
MAX_ID=${BASH_REMATCH[2]}