Skip to content

Commit

Permalink
maintainers/release-notes: Improve DATE check
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Gagarin <[email protected]>
  • Loading branch information
roberth and fricklerhandwerk authored Nov 27, 2023
1 parent e7e21aa commit f7bfec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintainers/release-notes
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit f7bfec2

Please sign in to comment.