kindle: Fix launch script path detection issues on older firmwares (#15625)

Fixes #15622
This commit is contained in:
Hackerdude authored and GitHub committed 2026-07-01 17:08:48 +02:00
1 parent 74a1732a78
commit f0906a41a7
1 file changed
+1 -1
+1 -1
View File
@@ -3,7 +3,7 @@
export LC_ALL="en_US.UTF-8"
# Compute our working directory in an extremely defensive manner
SCRIPT_DIR="$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd -P)"
SCRIPT_DIR="$(CDPATH='' cd "$(dirname "$0")" && pwd -P)"
# NOTE: We need to remember the *actual* KOREADER_DIR, not the relocalized version in /tmp...
export KOREADER_DIR="${KOREADER_DIR:-${SCRIPT_DIR}}"
UNPACK_DIR="${KOREADER_DIR%/*}"