Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 33b3369

Browse files
fix bug: release label date contains space when day of month < 10
1 parent 9ccfe8e commit 33b3369

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/cut-release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ if (( $VERBOSE )); then
107107
fi
108108

109109
# Choose a release label
110-
export TODAY="$(date -u +%e-%b-%Y)"
110+
# %e has a leading 0. get rid of that.
111+
export TODAY="$(date -u +%e-%b-%Y | perl -pe 's/\s+//g')"
111112
export RELEASE_LABEL="release-$TODAY"
112113

113114
if (( $VERBOSE )); then

0 commit comments

Comments
 (0)