You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/platform/mac/koreader.sh

22 lines
465 B
Bash

#!/bin/bash
export LC_ALL="en_US.UTF-8"
# writable storage: ${HOME}/.config/koreader.
export KO_MULTIUSER=1
# working directory of koreader
KOREADER_DIR="${0%/*}/../Resources/koreader"
# we're always starting from our working directory
cd "${KOREADER_DIR}" || exit
RETURN_VALUE=85
while [ ${RETURN_VALUE} -eq 85 ]; do
./reader.lua "${ARGS}"
RETURN_VALUE=$?
done
# remove the flag to avoid emulator confusion
export -n KO_MULTIUSER
exit ${RETURN_VALUE}