From 4d0cf5dfb43d7b95aa3bb6463e1a62a6aa578dcb Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Sun, 1 May 2016 12:37:29 +0900 Subject: [PATCH] Run file age check, only if we can get a value from __fisher_get_file_age. This probably means the user does not have python installed on their system and we will be download the index every time the user runs ls-remote. A more sensitive, python-less solution to check file age since the last time the file was modified should be more desirable. --- fisher.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fisher.fish b/fisher.fish index 710f70b..43ec2d6 100644 --- a/fisher.fish +++ b/fisher.fish @@ -817,8 +817,10 @@ function __fisher_remote_index_update end if test -s "$index" - if test (__fisher_get_file_age "$index") -lt "$interval" - return + if set -l file_age (__fisher_get_file_age "$index") + if test "$file_age" -lt "$interval" + return + end end end