From 670a33c5dc611847ac7a518d9c604b7486601400 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 22 Sep 2015 09:49:30 -0300 Subject: Make sure repo is updated since first run, also, update it when SIGINFO is received --- tools/build_snapshots.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') diff --git a/tools/build_snapshots.sh b/tools/build_snapshots.sh index 0e18985..60bec10 100755 --- a/tools/build_snapshots.sh +++ b/tools/build_snapshots.sh @@ -132,6 +132,10 @@ git_last_commit while [ /bin/true ]; do BUILDCOUNTER=$((${BUILDCOUNTER}+1)) + ${BUILDER_ROOT}/build.sh --snapshot-update-status ">>> Updating ${PRODUCT_NAME} repository." + git -C "${BUILDER_ROOT}" reset --hard + git -C "${BUILDER_ROOT}" pull -q + (${BUILDER_ROOT}/build.sh --clean-builder 2>&1) | while read -r LINE; do ${BUILDER_ROOT}/build.sh --snapshot-update-status "${LINE}" done -- cgit v1.1