dist/ci/deploy: only add line if missing from _servicedata.

Avoids duplication when multiple PRs are merged quickly after one another.
This commit is contained in:
Jimmy Berry 2017-09-01 16:53:14 -05:00
parent c2ddfaee4b
commit 9392b4daa9

View File

@ -14,7 +14,10 @@ cd "$OBS_PACKAGE"
rm *.obscpio
osc service disabledrun
echo >> _servicedata
# ensure _servicedata ends with a newline
tail -n1 _servicedata | read -r _ || echo >> _servicedata
osc addremove
osc commit -m "$(grep -oP 'version: \K.*' *.obsinfo)"