Base: codex-main originale (prima del fork aKode)
This commit is contained in:
15
scripts/workspace-status.sh
Executable file
15
scripts/workspace-status.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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}"
|
||||
Reference in New Issue
Block a user