aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Berg <sfb@consultron.com>2016-02-22 10:15:23 +0100
committerStefan Berg <stefan.k.berg@ericsson.com>2016-02-22 11:59:44 +0000
commit0968c27864fcebc21cadef717946492da3c0a567 (patch)
tree30c613c16a122f444d23a8f138d4405e846f9ea3
parent476baed4b3a3c961585cf7330be01b7feed70129 (diff)
Correction of biweek caching logic
Change-Id: I7c7466da3d07587da322467e294cd0a793a3fc37 Signed-off-by: Stefan Berg <sfb@consultron.com>
-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