Skip to content

Commit

Permalink
fix: fix bug with installing packages (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
BusHero authored Aug 21, 2023
1 parent b0e5911 commit ca91c32
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
"items": {
"type": "string",
"enum": [
"BuildDocumentation",
"BuildTemplate",
"GenerateDocumentationFeature",
"GetFeatures",
"GetTemplates",
"ListTemplatesAndFeatures",
Expand All @@ -93,8 +93,8 @@
"items": {
"type": "string",
"enum": [
"BuildDocumentation",
"BuildTemplate",
"GenerateDocumentationFeature",
"GetFeatures",
"GetTemplates",
"ListTemplatesAndFeatures",
Expand Down
2 changes: 1 addition & 1 deletion features/src/texlive/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainerFeature.schema.json",
"id": "texlive",
"version": "3.0.0",
"version": "3.1.0",
"name": "texlive",
"customizations": {
"vscode": {
Expand Down
4 changes: 2 additions & 2 deletions features/src/texlive/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh

apk update
apk upgrade
apk add \
Expand Down Expand Up @@ -62,8 +61,9 @@ echo "tlpdbopt_w32_multi_user 1" >> /root/texlive.profile
/root/install-texlive.sh $texlive_version
tlmgr install listings
if [ $PACKAGES ]; then
sed -e 's/,/ /g' $PACKAGES | xargs tlmgr install
echo "$PACKAGES" | sed -e 's/,/ /g' | xargs tlmgr install
fi

rm -f /root/texlive.profile \
/root/install-texlive.sh

Expand Down
11 changes: 11 additions & 0 deletions features/test/texlive/scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,16 @@
]
}
}
},
"two-packages": {
"image": "alpine:latest",
"features": {
"texlive": {
"packages": [
"listings",
"subfiles"
]
}
}
}
}
7 changes: 7 additions & 0 deletions features/test/texlive/two-packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

echo "packages: $packages"

echo "\documentclass[12pt,a4paper]{article} \usepackage{listings} \usepackage{subfiles} \begin{document}Hi\end{document}" > "test.tex"

pdflatex -interaction=nonstopmode test.tex

0 comments on commit ca91c32

Please sign in to comment.