diff --git a/platform/kindle/koreader.sh b/platform/kindle/koreader.sh index 16333d2ed..3eb38de74 100755 --- a/platform/kindle/koreader.sh +++ b/platform/kindle/koreader.sh @@ -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%/*}"