]> gitweb.fluxo.info Git - scripts.git/commitdiff
Feat: show: fixes (2)
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 2 Nov 2020 21:42:11 +0000 (18:42 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 2 Nov 2020 21:42:11 +0000 (18:42 -0300)
show

diff --git a/show b/show
index 5dffe02b28c60e3271647c2daf1108efe2632e7c..5e05ea6059c3c332d46ff4719eea250b4eac3569 100755 (executable)
--- a/show
+++ b/show
@@ -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