fix(linux-container): replace bash-specific syntax with POSIX shell

- Replace [[ regex syntax with case statement for /bin/sh compatibility
- Fix collection pattern matching that was causing 'not found' errors
- Ensure compatibility with default Docker shell environment
This commit is contained in:
Vijay Janapa Reddi
2025-08-05 19:38:58 -04:00
parent 5a4d5c902c
commit 38b4fd314e

View File

@@ -161,15 +161,17 @@ RUN echo "🚀 === STARTING TEX LIVE INSTALLATION ===" && \
which tlmgr && tlmgr --version || echo "❌ tlmgr not found or not working" && \
i=1 && \
while IFS= read -r collection; do \
if [[ "$collection" =~ ^collection- ]]; then \
echo "📦 [$i/$collection_count] Installing $collection..."; \
if command -v tlmgr >/dev/null 2>&1; then \
tlmgr install "$collection" || echo "⚠️ Failed to install $collection, continuing..."; \
else \
echo "⚠️ tlmgr not available, skipping $collection"; \
fi; \
i=$((i+1)); \
fi; \
case "$collection" in \
collection-*) \
echo "📦 [$i/$collection_count] Installing $collection..."; \
if command -v tlmgr >/dev/null 2>&1; then \
tlmgr install "$collection" || echo "⚠️ Failed to install $collection, continuing..."; \
else \
echo "⚠️ tlmgr not available, skipping $collection"; \
fi; \
i=$((i+1)); \
;; \
esac; \
done < /tmp/tl_packages && \
\
echo "🧹 Cleaning up TeX Live installer..." && \