From 4aeb44bb03532aa35592d25759e51d57c2cca179 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 7 Oct 2024 08:10:37 -0300 Subject: Fix: kobo scripts: migrate to docshower (2) --- copy-item-to-kobo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'copy-item-to-kobo') 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 -- cgit v1.2.3