diff options
author | Dan Radez <dradez@redhat.com> | 2016-06-13 14:56:16 -0400 |
---|---|---|
committer | Dan Radez <dradez@redhat.com> | 2016-06-13 20:29:19 -0400 |
commit | af2f93cebc62cd0d6f7c4b1a74fdeb65fbcf90a8 (patch) | |
tree | 7602423433ca36535dfbd2e3b2114d8c4be5ce57 /build/cache.sh | |
parent | 61c08699e3cdfec36633ae869fddbc4f22c32244 (diff) |
puppet-tripleo fork integration
moving the github integration with pull requests
into a function so we can continue to service opnfv-tht
and also service opnfv-puppet-tripleo with the same code
opnfv-puppet-tripleo-pr: 3
Change-Id: Ief2b1e7309defce9ed2029f6baade3c1371b7d96
Signed-off-by: Dan Radez <dradez@redhat.com>
Diffstat (limited to 'build/cache.sh')
-rw-r--r-- | build/cache.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/cache.sh b/build/cache.sh index a88ffce1..123748a2 100644 --- a/build/cache.sh +++ b/build/cache.sh @@ -24,6 +24,10 @@ function cache_git_tar { # $1 = download url # $2 = filename to write to function curl_file { + if [ -f $CACHE_DIR/$2 ]; then + echo "Removing stale $2" + rm -f $CACHE_DIR/$2 + fi echo "Downloading $1" echo "Cache download location: $CACHE_DIR/$2" until curl -C- -L -o $CACHE_DIR/$2 $1 || (( count++ >= 20 )); do |