diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/package-codex-plugin.sh | 2 | ||||
| -rwxr-xr-x | scripts/sync-to-codex-plugin.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/package-codex-plugin.sh b/scripts/package-codex-plugin.sh index 5308e28..fe90862 100755 --- a/scripts/package-codex-plugin.sh +++ b/scripts/package-codex-plugin.sh @@ -140,7 +140,7 @@ if [[ "$FORMAT" == "zip" ]]; then command -v unzip >/dev/null || die "unzip not found in PATH" fi -[[ -d "$REPO_ROOT/.git" ]] || die "repo root is not a git checkout: $REPO_ROOT" +[[ -e "$REPO_ROOT/.git" ]] || die "repo root is not a git checkout: $REPO_ROOT" git -C "$REPO_ROOT" rev-parse --verify "$REF^{commit}" >/dev/null || die "git ref does not resolve to a commit: $REF" 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)" |
