mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 00:02:25 +00:00
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 New Issue
Block a user