mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ if [[ ! -n "${DATE:-}" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$DATE" in
|
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)"
|
die "DATE must be YYYY-MM-DD, e.g. 2021-12-31 (DATE was set to $DATE)"
|
||||||
|
|
Loading…
Reference in a new issue