forked from lix-project/lix
maintainers/release-notes: Improve DATE check
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
This commit is contained in:
parent
e7e21aa0c8
commit
f7bfec2806
|
@ -134,7 +134,7 @@ if [[ ! -n "${DATE:-}" ]]; then
|
|||
fi
|
||||
|
||||
case "$DATE" in
|
||||
[0-9]*-[0-9]*-[0-9]*)
|
||||
[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9])
|
||||
;;
|
||||
*)
|
||||
die "DATE must be YYYY-MM-DD, e.g. 2021-12-31 (DATE was set to $DATE)"
|
||||
|
|
Loading…
Reference in a new issue