Merge pull request #236 from mstan/codex/package-empty-runtime-dirs

packaging: tolerate empty runtime dir lists
This commit is contained in:
Matt Stanley
2026-08-25 21:02:19 -07:00
committed by GitHub
+10 -6
View File
@@ -263,12 +263,16 @@ copy_runtime_dir() {
echo "staged runtime dir ${name}/"
}
for d in "${RUNTIME_DIRS[@]}"; do
copy_runtime_dir "${d}" 0
done
for d in "${RUNTIME_DIRS_OPTIONAL[@]}"; do
copy_runtime_dir "${d}" 1
done
if ((${#RUNTIME_DIRS[@]})); then
for d in "${RUNTIME_DIRS[@]}"; do
copy_runtime_dir "${d}" 0
done
fi
if ((${#RUNTIME_DIRS_OPTIONAL[@]})); then
for d in "${RUNTIME_DIRS_OPTIONAL[@]}"; do
copy_runtime_dir "${d}" 1
done
fi
copy_proj() {
local rel="$1"