# Update the filelist
function __update_filelist {
- find $DOCS -not -path '*.git*' > $FILELIST
+ find $DOCS -not -path '*.git*' > $LIST
}
# Check
fi
# Check for filelist
-if [ ! -e "$FILELIST" ]; then
+if [ ! -e "$LIST" ]; then
__update_filelist
CHANGED="`date +%s`"
else
# 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