13 lines
383 B
Bash
Executable File
13 lines
383 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -eu
|
|
|
|
script_dir=$(CDPATH= cd "$(dirname "$0")" && pwd)
|
|
repo_root=$(CDPATH= cd "$script_dir/.." && pwd)
|
|
layouts_root=$repo_root/../../../tools/card-layouts
|
|
|
|
if ! git -C "$repo_root" rev-parse --verify HEAD >/dev/null 2>&1; then
|
|
export GITEA_SHA=0000000000000000000000000000000000000000
|
|
fi
|
|
|
|
exec "$layouts_root/tools/render_card_pdf_preserving.sh" "$repo_root"
|