aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-11-02 18:39:13 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-11-02 18:39:13 -0300
commit328610ef41d7451982ce587d15565160e96a9b58 (patch)
tree9c0b7c75efec973a1f44c20e7c2124f2aefc11c0
parent5c1c193fea476f7d99fcdf87b5b93008288a2d17 (diff)
downloadscripts-328610ef41d7451982ce587d15565160e96a9b58.tar.gz
scripts-328610ef41d7451982ce587d15565160e96a9b58.tar.bz2
Feat: show: fixes
-rwxr-xr-xshow6
1 files changed, 3 insertions, 3 deletions
diff --git a/show b/show
index a2f7179..5dffe02 100755
--- a/show
+++ b/show
@@ -13,7 +13,7 @@ MAX_AGE="86400"
# Update the filelist
function __update_filelist {
- find $DOCS -not -path '*.git*' > $FILELIST
+ find $DOCS -not -path '*.git*' > $LIST
}
# Check
@@ -26,7 +26,7 @@ elif [ ! -d "$DOCS" ]; then
fi
# Check for filelist
-if [ ! -e "$FILELIST" ]; then
+if [ ! -e "$LIST" ]; then
__update_filelist
CHANGED="`date +%s`"
else
@@ -40,4 +40,4 @@ fi
# Dispatch
#find $DOCS -iname "*$ITEM*" | head -1 | while read entry; do xdg-open "$entry"; done
-grep -- "$ITEM" $LIST | while read entry; do xdg-open "$entry"; done
+cd $DOC && grep -- "$ITEM" $LIST | while read entry; do xdg-open "$entry"; done