Fix setup-circuits realpath helpers

This commit is contained in:
andrussal 2025-12-09 17:54:36 +01:00
parent 99da5da1cc
commit 2c54c17239

View File

@ -85,14 +85,16 @@ echo "Workspace: ${ROOT_DIR}"
LINUX_PLATFORM="linux-x86_64"
echo "Installing Linux bundle for Docker image into ${STACK_DIR}"
stage_real="$(python3 - <<'PY'
stage_real="$(python3 - "${LINUX_STAGE_DIR}" <<'PY'
import os, sys
print(os.path.realpath(sys.argv[1]))
PY "${LINUX_STAGE_DIR}")"
stack_real="$(python3 - <<'PY'
PY
)"
stack_real="$(python3 - "${STACK_DIR}" <<'PY'
import os, sys
print(os.path.realpath(sys.argv[1]))
PY "${STACK_DIR}")"
PY
)"
if [ "$stage_real" = "$stack_real" ]; then
# No staging copy needed; install directly into STACK_DIR.