Download scripts/workspace-status.sh from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/scripts/workspace-status.sh
- Command line
-
hf download hf://SaylorTwift/codex/scripts/workspace-status.sh
-
curl -L -o workspace-status.sh https://huggingface.co/SaylorTwift/codex/resolve/main/scripts/workspace-status.sh
355 Bytes
| set -euo pipefail | |
| if [[ -n "${STABLE_GIT_COMMIT:-}" ]]; then | |
| build_commit="${STABLE_GIT_COMMIT}" | |
| elif build_commit="$(git rev-parse --verify HEAD 2>/dev/null)"; then | |
| : | |
| elif [[ -n "${GITHUB_SHA:-}" ]]; then | |
| build_commit="${GITHUB_SHA}" | |
| else | |
| build_commit="unknown" | |
| fi | |
| printf 'STABLE_GIT_COMMIT %s\n' "${build_commit}" | |