aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-01-30 14:33:49 +0100
committerKarel Kočí <karel.koci@nic.cz>2017-01-30 14:33:49 +0100
commitd607a4bc923f3f4cb3a70ffa92060dc2c1ad97d9 (patch)
tree6ac4839ac27f78847c68b35acb6b52c8f0045f75
parent594caeb275f5c15f57b5178165c1e9ec6a67fa44 (diff)
downloadturris-myrepo-d607a4bc923f3f4cb3a70ffa92060dc2c1ad97d9.tar.gz
turris-myrepo-d607a4bc923f3f4cb3a70ffa92060dc2c1ad97d9.tar.bz2
turris-myrepo-d607a4bc923f3f4cb3a70ffa92060dc2c1ad97d9.zip
Fix compare time
How the hack did I come up with that number?
-rwxr-xr-xbuild_repo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_repo.sh b/build_repo.sh
index afff0dd..b452d79 100755
--- a/build_repo.sh
+++ b/build_repo.sh
@@ -16,7 +16,7 @@ rm -rf .turris-sdk
pull_sdk() {
# Update only once a day
- if [ ! -e .$1-sdk-clean ] || [ $(expr $(date -u +%s) - $(stat -c %Y .$1-sdk-clean)) -gt 5184000 ]; then
+ if [ ! -e .$1-sdk-clean ] || [ $(expr $(date -u +%s) - $(stat -c %Y .$1-sdk-clean)) -gt 86400 ]; then
rm -rf .$1-sdk-clean
echo -e "\e[1;34mGetting current SDK for $1\e[0m"
curl "$2" | tar -xjf -