Commit 775244d3 authored by Hugh Davenport's avatar Hugh Davenport

Add in shebang line to cleanup script, and set -e

Makes it fail on errors :D
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent 5c9dae2c
......@@ -239,8 +239,9 @@ git remote add gerrit ${GERRIT}
# Output commands to push to the remote repository and clean up
CLEANUPSCRIPT=release-${RELEASE}-cleanup.sh
echo > ${CURRENTDIR}/${CLEANUPSCRIPT}
echo "#!/bin/sh" > ${CURRENTDIR}/${CLEANUPSCRIPT}
echo "set -e" > ${CURRENTDIR}/${CLEANUPSCRIPT}
echo "cd ${BUILDDIR}/mahara" >> ${CURRENTDIR}/${CLEANUPSCRIPT}
echo "git push gerrit ${BRANCH}:refs/heads/${BRANCH}" >> ${CURRENTDIR}/${CLEANUPSCRIPT}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment