diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-04-15 19:30:38 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-04-15 19:30:38 -0300 |
commit | 561d25be18529a18b9651b01f7ce6814064ada53 (patch) | |
tree | 0219e0939f0ee1e9a888b138181448493b88cbe8 /show | |
parent | 6a1add686c7b5b1dccdb2a9c3a9334fd8e030d68 (diff) | |
download | scripts-561d25be18529a18b9651b01f7ce6814064ada53.tar.gz scripts-561d25be18529a18b9651b01f7ce6814064ada53.tar.bz2 |
Fix: show --watch: inotifywait params
Diffstat (limited to 'show')
-rwxr-xr-x | show | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -61,13 +61,11 @@ if [ "$ITEM" == "--search" ]; then shift grep -i -- "$*" $LIST elif [ "$ITEM" == "--watch" ]; then - ( - cd $DOCS - - while inotifywait -e modify -e create -e move -e delete .; do - $PROGRAM --refresh - done - ) + # Convert symlink to full path and start inotifywait loop + #while inotifywait -e modify -e create -e move -e delete -r "`readlink -f $DOCS`"; do + while inotifywait -e modify -e move -r "`readlink -f $DOCS`"; do + $PROGRAM --refresh + done else grep -i -- "$ITEM" $LIST | while read entry; do echo "Opening $entry..." |