release-tarball-build-dist: fix missing dir crash

Don't fail if no tarball was generated and therefore the
_release_tarballs directory does not exist.

Related: OS#5793
Change-Id: Ib7c551e5376776eb267140bc4b897d5bb1634cbc
This commit is contained in:
Oliver Smith 2022-11-30 17:08:02 +01:00
parent 757396a61b
commit 858178e4e3
1 changed files with 5 additions and 0 deletions

View File

@ -326,6 +326,11 @@ create_move_tarball() {
}
upload() {
if ! [ -d _release_tarballs ]; then
echo "upload: no tarballs generated, nothing to do."
return
fi
cd _release_tarballs
rsync -avz -e "$SSH_COMMAND" . releases@ftp.osmocom.org:web-files/
}