Permalink
Browse files

Ensure that the buildbot script exits with the proper status.

  • Loading branch information...
1 parent ee0bff8 commit 8ffe6e0c271d94b0985366d5b119ed91e26ed1b9 @dak180 dak180 committed Mar 24, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 macosx/BuildBot/03_upload.sh
@@ -28,22 +28,25 @@ bran="-${rtag}"
# Upload the dSYM bundle
echo "Starting to upload the dSYM bundle."
if ! scp -pqCl 320 ${lpth}${dmg_bn}${tar_dS} ${uurl}:${rpth}${opth}${dmg_bn}${bran}${revt}${tar_dS}; then
+ exstat="${?}"
echo "error: Upload did not complete!"
- exit ${?}
+ exit ${exstat}
fi
# Upload the .dmg
echo "Starting to upload the dmg image."
if ! scp -pqCl 320 ${lpth}${dmg_bn}${dmg_nv} ${uurl}:${rpth}${opth}${dmg_bn}${bran}${revt}.dmg; then
+ exstat="${?}"
echo "error: Upload did not complete!"
- exit ${?}
+ exit ${exstat}
fi
# Link up the current .dmg and dSYM bundle
if ! ssh ${uurl} -C "cd ${rpth} && ln -fs ${opth}${dmg_bn}${bran}${revt}.dmg ${dmg_bn}${bran}-current.dmg && ln -fs ${opth}${dmg_bn}${bran}${revt}${tar_dS} ${dmg_bn}${bran}-current${tar_dS}"; then
+ exstat="${?}"
echo "error: Failed to link!"
- exit ${?}
+ exit ${exstat}
fi
exit 0

0 comments on commit 8ffe6e0

Please sign in to comment.