From ee7f3386b871673c738240bc1b200e1b6220b593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 30 Jan 2017 15:29:49 +0100 Subject: Use status change instead of data modification to check how old SDK is --- build_repo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_repo.sh b/build_repo.sh index b452d79..2dcc79f 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 86400 ]; then + if [ ! -e .$1-sdk-clean ] || [ $(expr $(date -u +%s) - $(stat -c %Z .$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 - -- cgit v1.2.3