Pocketbook: launcher script: please shfmt (#6621)

reviewable/pr6623/r1
ezdiy 4 years ago committed by GitHub
parent 4857e97e30
commit 91ebe56b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,14 +8,14 @@ KOREADER_DIR=/mnt/ext1/applications/koreader
export KO_PATH_OPEN_BOOK=/tmp/.koreader.open export KO_PATH_OPEN_BOOK=/tmp/.koreader.open
# check for and notify a running instance # 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 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 exec /usr/bin/iv2sh SetActiveTask "${INSTANCE_PID}" 0
fi fi
# we're first, so publish our instance # we're first, so publish our instance
echo $$ > /tmp/koreader.pid echo $$ >/tmp/koreader.pid
# update to new version from OTA directory # update to new version from OTA directory
NEWUPDATE="${KOREADER_DIR}/ota/koreader.updated.tar" NEWUPDATE="${KOREADER_DIR}/ota/koreader.updated.tar"

Loading…
Cancel
Save