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:
parent
c2ddfaee4b
commit
9392b4daa9
5
dist/ci/deploy.obs.sh
vendored
5
dist/ci/deploy.obs.sh
vendored
@ -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)"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user