Skip to content

Commit

Permalink
fix: Add installed commands to path
Browse files Browse the repository at this point in the history
fixes #12
  • Loading branch information
reitzig committed Mar 12, 2024
1 parent 36a7d02 commit 026b99b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ case "${command}" in
# Install dependencies
hashfile="${TMP_DIR}/${TEXLIVEFILE}.sha"
mkdir -p "$(dirname "${hashfile}")"

if [[ -f "${SRC_DIR}/${TEXLIVEFILE}" ]]; then
if ! sha256sum -c "${hashfile}" > /dev/null 2>&1; then
echo "Installing dependencies ..."
tlmgr update --self
xargs tlmgr install < "${SRC_DIR}/${TEXLIVEFILE}"
tlmgr path add
sha256sum "${SRC_DIR}/${TEXLIVEFILE}" > "${hashfile}"
else
echo "${TEXLIVEFILE} has not changed; nothing new to install."
Expand Down

0 comments on commit 026b99b

Please sign in to comment.