diff options
Diffstat (limited to 'copy-annotations-from-kobo')
-rwxr-xr-x | copy-annotations-from-kobo | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/copy-annotations-from-kobo b/copy-annotations-from-kobo index a7d936c..3d386c9 100755 --- a/copy-annotations-from-kobo +++ b/copy-annotations-from-kobo @@ -5,6 +5,7 @@ # Parameters BASENAME="`basename $0`" +DIRNAME="`dirname $0`" BASEFOLDER="$HOME/data/doc" REMOTE_BASE="/mnt/sd" REMOTE="kobo" @@ -29,7 +30,7 @@ if [ -z "$PATTERN" ]; then fi # Dispatch -docshower --search "$PATTERN" | while read item; do +$DIRNAME/docshower --search "$PATTERN" | while read item; do #sdr="`echo $item | sed -e 's/\.pdf$//' -e 's/\.epub$//' -e 's/\.djvuf$//'`.sdr" basename="`echo $item | sed -e 's/\.[^.]*$//'`" extension="$(echo $item | sed -e "s|$basename.||")" |