diff options
| author | Drew Ritter <drew@ritter.dev> | 2026-11-02 14:39:13 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-02 14:39:13 -0800 |
| commit | cdeb32c955964723c09f7191db8f81f426ddbab8 (patch) | |
| tree | da43c1c56fb9fe223008e6f3e16d8ff8be0de33c /scripts/sync-to-codex-plugin.sh | |
| parent | 4e08cb1469a23f82d7024d6c493f618a5e54bd0e (diff) | |
| parent | f713233eee9143d0a798976fd0d11609f91c0b5c (diff) | |
Merge pull request #2609 from obra/fix/codex-scripts-in-worktrees
fix(codex): accept linked git worktrees in the package and sync scripts
Diffstat (limited to 'scripts/sync-to-codex-plugin.sh')
| -rwxr-xr-x | scripts/sync-to-codex-plugin.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/sync-to-codex-plugin.sh b/scripts/sync-to-codex-plugin.sh index fc80ab2..d1c65ca 100755 --- a/scripts/sync-to-codex-plugin.sh +++ b/scripts/sync-to-codex-plugin.sh @@ -179,7 +179,7 @@ command -v python3 >/dev/null || die "python3 not found in PATH" gh auth status >/dev/null 2>&1 || die "gh not authenticated — run 'gh auth login'" -[[ -d "$UPSTREAM/.git" ]] || die "upstream '$UPSTREAM' is not a git checkout" +[[ -e "$UPSTREAM/.git" ]] || die "upstream '$UPSTREAM' is not a git checkout" [[ -f "$UPSTREAM/.codex-plugin/plugin.json" ]] || die "committed Codex manifest missing at $UPSTREAM/.codex-plugin/plugin.json" # Read the upstream version from the committed Codex manifest. @@ -223,7 +223,7 @@ trap cleanup EXIT if [[ -n "$LOCAL_CHECKOUT" ]]; then DEST_REPO="$(cd "$LOCAL_CHECKOUT" && pwd)" - [[ -d "$DEST_REPO/.git" ]] || die "--local path '$DEST_REPO' is not a git checkout" + [[ -e "$DEST_REPO/.git" ]] || die "--local path '$DEST_REPO' is not a git checkout" else echo "Cloning $FORK..." CLEANUP_DIR="$(mktemp -d)" |
