Correction of biweek caching logic 73/10373/5
authorStefan Berg <sfb@consultron.com>
Mon, 22 Feb 2016 09:15:23 +0000 (10:15 +0100)
committerJonas Bjurel <jonas.bjurel@ericsson.com>
Mon, 22 Feb 2016 11:56:17 +0000 (11:56 +0000)
Change-Id: I7c7466da3d07587da322467e294cd0a793a3fc37
Signed-off-by: Stefan Berg <sfb@consultron.com>
build/cache.sh

index b5f0902..7a2a063 100755 (executable)
@@ -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