diff options
-rwxr-xr-x | script/librelease.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/script/librelease.sh b/script/librelease.sh index 976c801120..d2bb79c2d2 100755 --- a/script/librelease.sh +++ b/script/librelease.sh @@ -41,11 +41,15 @@ release_lib() { tagname=$(basename $tarname .tar | sed s/[\.]/-/g) echo "tagging as $tagname" - git tag -u $GPG_KEYID -s "$tagname" -m "$lib: tag release $tagname" + git tag -u $GPG_KEYID -s "$tagname" -m "$lib: tag release $tagname" || { + exit 1 + } echo "signing" rm -f "$tarname.asc" - gpg -u "$GPG_USER" --detach-sign --armor $tarname || exit 1 + gpg -u "$GPG_USER" --detach-sign --armor $tarname || { + exit 1 + } [ -f "$tarname.asc" ] || { echo "Failed to create signature $tarname.asc" exit 1 @@ -58,7 +62,9 @@ release_lib() { } echo "Transferring" - rsync -Pav $tarname.asc $tgzname master.samba.org:~ftp/pub/$lib/ + rsync -Pav $tarname.asc $tgzname master.samba.org:~ftp/pub/$lib/ || { + exit 1 + } popd } |