diff --git a/entrypoint.sh b/entrypoint.sh index 0b18d85..0e35d89 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -90,7 +90,8 @@ case "${command}" in # Install dependencies hashfile="${TMP_DIR}/${TEXLIVEFILE}.sha" - mkdir -p $(dirname ${hashfile}) + mkdir -p "$(dirname "${hashfile}")" + if [[ -f "${SRC_DIR}/${TEXLIVEFILE}" ]]; then if ! sha256sum -c "${hashfile}" > /dev/null 2>&1; then echo "Installing dependencies ..."