diff options
author | Stefan K. Berg <stefan.k.berg@ericsson.com> | 2016-01-29 13:29:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-01-29 13:29:43 +0000 |
commit | 17b1ae56ee54b6db75ea9d0b4e1ca8820a155c89 (patch) | |
tree | 7e7962bcead580dfdd368db542e2c76149b6e133 /build/cache.sh | |
parent | a9a74a47a32c57d664c4db540b6019292345318d (diff) | |
parent | 36895dd570e1c602ea3171fa4c8bb77b19bc91d4 (diff) |
Merge "Cache as we go instead of in the end" into stable/brahmaputra
Diffstat (limited to 'build/cache.sh')
-rwxr-xr-x | build/cache.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build/cache.sh b/build/cache.sh index 07361d28a..7c2f2109c 100755 --- a/build/cache.sh +++ b/build/cache.sh @@ -19,7 +19,6 @@ exit_trap() { trap exit_trap EXIT CACHETRANSPORT=${CACHETRANSPORT:-"curl --silent"} -CACHEBASE=${CACHEBASE:-"file://${HOME}/cache"} CACHEMAXAGE=${CACHEMAXAGE:-$[14*24*3600]} CACHEDEBUG=${CACHEDEBUG:-1} @@ -132,6 +131,12 @@ getcommitid() { fi } + + +if [ -z "$CACHEBASE" ]; then + errorexit "CACHEBASE not set - exiting..." +fi + case $1 in getcommitid) if [ $# -ne 3 ]; then |