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

diff --git a/show b/show
index 46061d838d44b1b79a436e5c218f5ffcc51b2374..822e27f13392e777a684aec7875280d779da5180 100755 (executable)
--- a/show
+++ b/show
@@ -41,7 +41,7 @@ fi
 
 # Dispatch
 #find $DOCS -iname "*$ITEM*" | head -1 | while read entry; do xdg-open "$entry"; done
-cd $DOC && grep -- "$ITEM" $LIST | while read entry; do
+grep -- "$ITEM" $LIST | while read entry; do
   echo "Opening $entry..."
-  xdg-open "$entry"
+  cd $DOC && xdg-open "$entry"
 done