diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-22 09:49:30 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-22 09:49:30 -0300 |
commit | 670a33c5dc611847ac7a518d9c604b7486601400 (patch) | |
tree | 5b68785319b06c4ffd8d48785769932812da008b /tools | |
parent | 8a6723d523cf9efdd5d9975ad95062f7f2a8c15e (diff) | |
download | pfsense-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')
-rwxr-xr-x | tools/build_snapshots.sh | 4 |
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 |