Created
June 17, 2026 19:23
-
-
Save megahall/89c8051d69cde8640da07aa103b5272b to your computer and use it in GitHub Desktop.
simple script to update Codex in CWD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| script_directory="$(dirname "$(realpath "${BASH_SOURCE[0]}")")" | |
| cd "${script_directory}" | |
| version="${1:-0.140.0}" | |
| wget -O "codex-npm-linux-x64-${version}.tgz" "https://github.com/openai/codex/releases/download/rust-v${version}/codex-package-x86_64-unknown-linux-musl.tar.gz" | |
| tar xzf "codex-npm-linux-x64-${version}.tgz" bin/codex | |
| mv bin/codex codex | |
| rm "codex-npm-linux-x64-${version}.tgz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment