Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .devcontainer/post-start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/bin/bash

set -u

# Ensure that the colrev package is available before using it. When the
# Codespaces image cache does not include the dependency, installing it on
# demand keeps the setup reproducible for new workspaces as well as locally.
if ! command -v colrev >/dev/null 2>&1; then
if ! python -m pip install --no-cache-dir "git+https://github.com/CoLRev-Environment/colrev"; then
echo "Warning: Failed to install colrev automatically." >&2
fi
fi

colrev install all_internal_packages
# Pull Docker images
for repo in pandoc/latex:3.2.0 lfoppiano/grobid:0.8.1 jbarlow83/ocrmypdf:latest; do
Expand Down