Skip to content

Commit

Permalink
Merge pull request #816 from weaveworks/tools
Browse files Browse the repository at this point in the history
Update to latest tools.git
  • Loading branch information
tomwilkie committed Jan 14, 2016
2 parents e5541b9 + e5d58ac commit 3f6e9a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/rebuild-image
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ if has_changes $cached_revision $CIRCLE_SHA1 ; then
exit 0
fi

if [ "$(commit_timestamp $cached_revision)" -lt "$(( $(date +%s) - 86400 ))" ]; then
IMAGE_TIMEOUT="$(( 3 * 24 * 60 * 60 ))"
if [ "$(commit_timestamp $cached_revision)" -lt "${IMAGE_TIMEOUT}" ]; then
echo ">>> Image is more the 24hrs old; rebuilding"
rebuild
exit 0
Expand Down

0 comments on commit 3f6e9a3

Please sign in to comment.