summaryrefslogtreecommitdiffstats
path: root/tools/build_snapshots.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-22 09:49:30 -0300
committerRenato Botelho <renato@netgate.com>2015-09-22 09:49:30 -0300
commit670a33c5dc611847ac7a518d9c604b7486601400 (patch)
tree5b68785319b06c4ffd8d48785769932812da008b /tools/build_snapshots.sh
parent8a6723d523cf9efdd5d9975ad95062f7f2a8c15e (diff)
downloadpfsense-670a33c5dc611847ac7a518d9c604b7486601400.zip
pfsense-670a33c5dc611847ac7a518d9c604b7486601400.tar.gz
Make sure repo is updated since first run, also, update it when SIGINFO is received
Diffstat (limited to 'tools/build_snapshots.sh')
-rwxr-xr-xtools/build_snapshots.sh4
1 files changed, 4 insertions, 0 deletions
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
OpenPOWER on IntegriCloud