diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-10-07 08:10:37 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-10-07 08:10:37 -0300 |
commit | 4aeb44bb03532aa35592d25759e51d57c2cca179 (patch) | |
tree | 3c43cc803db6388270297f94a181672574b8ea0a | |
parent | a70038153935f4a50d447482acd0ceed5b294e2a (diff) | |
download | utils-doc-4aeb44bb03532aa35592d25759e51d57c2cca179.tar.gz utils-doc-4aeb44bb03532aa35592d25759e51d57c2cca179.tar.bz2 |
Fix: kobo scripts: migrate to docshower (2)
-rwxr-xr-x | copy-annotations-from-kobo | 3 | ||||
-rwxr-xr-x | copy-item-to-kobo | 3 |
2 files changed, 4 insertions, 2 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.||")" diff --git a/copy-item-to-kobo b/copy-item-to-kobo index dd78b12..3636bf2 100755 --- a/copy-item-to-kobo +++ b/copy-item-to-kobo @@ -5,6 +5,7 @@ # Parameters BASENAME="`basename $0`" +DIRNAME="`dirname $0`" BASEFOLDER="$HOME/data/doc" REMOTE_BASE="/mnt/sd" REMOTE="kobo" @@ -30,7 +31,7 @@ if [ -z "$PATTERN" ]; then fi # Dispatch -docshower --search "$PATTERN" | while read item; do +$DIRNAME/docshower --search "$PATTERN" | while read item; do dirname="`dirname "$item"`" # Check if item has unspported chars in it's file name |