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:
parent
dd07112de7
commit
10584494ee
@ -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 -
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user