summaryrefslogtreecommitdiffstats
path: root/build/cache.sh
diff options
context:
space:
mode:
authorStefan Berg <sfb@consultron.com>2016-02-22 10:15:23 +0100
committerJonas Bjurel <jonas.bjurel@ericsson.com>2016-02-22 11:56:17 +0000
commit7a402764fdb92f8f09c67c2345355a52c1348572 (patch)
treea82fb6fbf5994062067aa559a5917a5940aa544a /build/cache.sh
parentda41b5a463dd60a2e20afe5c981d2ce869532444 (diff)
Correction of biweek caching logic
Change-Id: I7c7466da3d07587da322467e294cd0a793a3fc37 Signed-off-by: Stefan Berg <sfb@consultron.com>
Diffstat (limited to 'build/cache.sh')
-rwxr-xr-xbuild/cache.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/cache.sh b/build/cache.sh
index b5f090210..7a2a06385 100755
--- a/build/cache.sh
+++ b/build/cache.sh
@@ -37,7 +37,7 @@ errorexit () {
# can be used when generating the SHA1 to make sure that the cache is
# rebuilt bi-weekly even if no pruning of the cache is taking place.
getbiweek () {
- echo "$(date +'%G')$[$(date +'%V')/2]"
+ echo "$(date +'%G')$[10#$(date +'%V')/2]"
}
# Get a SHA1 based on what's piped into the cache command