INNER CODE UNIT · HTML
ORIG_BRANCH
slsa-framework/slsa · tools/migrate-to-late-branch.sh:56
ORIG_BRANCH=$(git rev-parse --abbrev-ref HEAD)
# --- Find all subfolders in docs/spec ---
SPECDIR="docs/spec"
if [[ ! -d "$SPECDIR" ]]; then
echo "Error: $SPECDIR does not exist."
exit 1
fi
# --- Start from the root of the repo ---
cd "$(git rev-parse --show-toplevel)"
# --- Collect all released version subfolders before starting the loop ---
VERSIONS=($(ls -1 "$SPECDIR" | grep -vE '^\.|^README|^draft$'))
REF_SPEC="releases"
# --- Check if any of the version refs already exist ---
echo "Checking for existing version refs..."