Skip to content

Commit 0a16084

Browse files
committed
Replace Date/Publication if it pre-exists
1 parent 88407ed commit 0a16084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ echo "buildtools::replace_rmarkdown_engine()" > /tmp/vignettehack.R
186186
# Replace or add "Repository:" in DESCRIPTION
187187
if [ "${MY_UNIVERSE}" ]; then
188188
sed -n -e '/^Repository:/!p' -e "\$aRepository: ${MY_UNIVERSE}" -i "${DESCRIPTION}"
189-
echo "Date/Publication: ${GIT_DATE}" >> "${DESCRIPTION}"
189+
sed -n -e '/^Date.Publication:/!p' -e "\$aDate/Publication: ${GIT_DATE}" -i "${DESCRIPTION}"
190190
echo "RemoteUrl: ${1}" >> "${DESCRIPTION}"
191191
echo "RemoteRef: ${BRANCH}" >> "${DESCRIPTION}"
192192
echo "RemoteSha: ${2}" >> "${DESCRIPTION}"

0 commit comments

Comments
 (0)