2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00

[CI] Minor updates for ShellCheck 0.8.0 (#8605)

Cf. <https://github.com/koreader/virdevenv/pull/71#discussion_r777025218>.
This commit is contained in:
Frans de Jonge 2022-01-02 08:56:00 +01:00 committed by GitHub
parent dd07112de7
commit 10584494ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ else
fi fi
#install our own updated shellcheck #install our own updated shellcheck
SHELLCHECK_VERSION="v0.7.1" SHELLCHECK_VERSION="v0.8.0"
SHELLCHECK_URL="https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION?}/shellcheck-${SHELLCHECK_VERSION?}.linux.x86_64.tar.xz" SHELLCHECK_URL="https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION?}/shellcheck-${SHELLCHECK_VERSION?}.linux.x86_64.tar.xz"
if ! command -v shellcheck; then if ! command -v shellcheck; then
curl -sSL "${SHELLCHECK_URL}" | tar --exclude 'SHA256SUMS' --strip-components=1 -C "${HOME}/bin" -xJf - curl -sSL "${SHELLCHECK_URL}" | tar --exclude 'SHA256SUMS' --strip-components=1 -C "${HOME}/bin" -xJf -

View File

@ -8,7 +8,7 @@ KOREADER_DIR="${0%/*}"
cd "${KOREADER_DIR}" || exit cd "${KOREADER_DIR}" || exit
# export load library path # export load library path
export LD_LIBRARY_PATH=${KOREADER_DIR}/libs:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH="${KOREADER_DIR}/libs":"${LD_LIBRARY_PATH}"
RETURN_VALUE=85 RETURN_VALUE=85

View File

@ -8,7 +8,7 @@
# NOTE: We inherit WITH_PIPEFAIL from the env via OTAManager, because of course old busybox ash versions abort on set -o failures... # NOTE: We inherit WITH_PIPEFAIL from the env via OTAManager, because of course old busybox ash versions abort on set -o failures...
# c.f., https://github.com/koreader/koreader/pull/5844 # c.f., https://github.com/koreader/koreader/pull/5844
if [ "${WITH_PIPEFAIL}" = "true" ]; then if [ "${WITH_PIPEFAIL}" = "true" ]; then
# shellcheck disable=SC2039 # shellcheck disable=SC2039,SC3040
set -o pipefail set -o pipefail
fi fi

View File

@ -8,7 +8,7 @@ KOREADER_DIR="${0%/*}"
cd "${KOREADER_DIR}" || exit cd "${KOREADER_DIR}" || exit
# export load library path for some old firmware # export load library path for some old firmware
export LD_LIBRARY_PATH=${KOREADER_DIR}/libs:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH="${KOREADER_DIR}/libs":"${LD_LIBRARY_PATH}"
# export trained OCR data directory # export trained OCR data directory
export TESSDATA_PREFIX="data" export TESSDATA_PREFIX="data"