aboutsummaryrefslogtreecommitdiff
path: root/build_repo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build_repo.sh')
-rwxr-xr-xbuild_repo.sh2
1 files changed, 1 insertions, 1 deletions
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 -