diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-11-02 18:42:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-11-02 18:42:11 -0300 |
commit | d64f0bf154d21457a92647d6abbac910d45fcd87 (patch) | |
tree | 9fff63d1da1b42dce190b2ad4e7d762a7b963840 | |
parent | 328610ef41d7451982ce587d15565160e96a9b58 (diff) | |
download | scripts-d64f0bf154d21457a92647d6abbac910d45fcd87.tar.gz scripts-d64f0bf154d21457a92647d6abbac910d45fcd87.tar.bz2 |
Feat: show: fixes (2)
-rwxr-xr-x | show | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13,7 +13,7 @@ MAX_AGE="86400" # Update the filelist function __update_filelist { - find $DOCS -not -path '*.git*' > $LIST + cd $DOCS && find . -not -path '*.git*' > $LIST } # Check @@ -33,8 +33,8 @@ else CHANGED="`stat --printf='%Y\n' $LIST`" fi -# Refresh lists older than $MAG_AGE -if ((($DATE - $CHANGED) >= $MAG_AGE)); then +# Refresh lists older than $MAX_AGE +if ((($DATE - $CHANGED) >= $MAX_AGE)); then __update_filelist fi |