Skip to content

Commit

Permalink
More portable date format in release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaoverton committed Jan 22, 2024
1 parent 02a7c57 commit 5675767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ git diff --exit-code . || fail "Changes to src/ must be committed"

# Get the date from the obi.owl file.
DATE="$(grep owl:versionInfo obi.owl | head -n1 | grep -Po '\d\d\d\d-\d\d-\d\d')"
DATE=$(date --date="${DATE}" --iso-8601)
DATE=$(date --date="${DATE}" '+%Y-%m-%d')
DATE="${DATE:?Invalid date}"
confirm "Is this the release date: '${DATE}'?"

Expand Down

0 comments on commit 5675767

Please sign in to comment.