Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien/blob/main/scripts/goal_microjobs/recovery-build.sh # aien aien-dev/aien Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien / scripts / goal_microjobs / recovery-build.sh` 13 lines ยท 566 bytes Raw Blame History 1 #!/bin/sh 2 # Migration-only build adapter, aien-dev/aien#22; runtime decisions are Omega. 3 set -eu 4 HERE=$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd) 5 OUT=${1:?output binary} 6 SOURCE=${2:-$HERE/src/goal_microjobs/recovery.om} 7 [ "$(sha256sum < "${OMEGA_OMC:?pinned omc}" | cut -c1-64)" = `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f` ] || { echo 'BLOCKED: omc hash mismatch' >&2; exit 3; } 8 T=$(mktemp -d) 9 trap 'rm -rf "$T"' EXIT HUP INT TERM 10 "$OMEGA_OMC" < "$SOURCE" > "$T/recovery" 11 chmod +x "$T/recovery" 12 mv "$T/recovery" "$OUT" 13 sha256sum "$OUT"