From d64f0bf154d21457a92647d6abbac910d45fcd87 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 2 Nov 2020 18:42:11 -0300 Subject: Feat: show: fixes (2) --- show | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/show b/show index 5dffe02..5e05ea6 100755 --- 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 -- cgit v1.2.3