2
0
mirror of https://github.com/koreader/koreader synced 2024-11-18 03:25:46 +00:00

Pocketbook: launcher script: please shfmt (#6621)

This commit is contained in:
ezdiy 2020-09-01 22:46:43 +02:00 committed by GitHub
parent 4857e97e30
commit 91ebe56b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,14 +8,14 @@ KOREADER_DIR=/mnt/ext1/applications/koreader
export KO_PATH_OPEN_BOOK=/tmp/.koreader.open
# check for and notify a running instance
INSTANCE_PID=$(cat /tmp/koreader.pid 2> /dev/null)
INSTANCE_PID=$(cat /tmp/koreader.pid 2>/dev/null)
if [ "${INSTANCE_PID}" != "" ] && [ -e "/proc/${INSTANCE_PID}" ]; then
echo "$@" > "${KO_PATH_OPEN_BOOK}"
echo "$@" >"${KO_PATH_OPEN_BOOK}"
exec /usr/bin/iv2sh SetActiveTask "${INSTANCE_PID}" 0
fi
# we're first, so publish our instance
echo $$ > /tmp/koreader.pid
echo $$ >/tmp/koreader.pid
# update to new version from OTA directory
NEWUPDATE="${KOREADER_DIR}/ota/koreader.updated.tar"