Skip to content

fix: harden worklog skill portability, remove dead code - #19

Merged
cheshirecode merged 1 commit into
mainfrom
codex/worklog-portability-cleanup
Jul 30, 2026
Merged

fix: harden worklog skill portability, remove dead code#19
cheshirecode merged 1 commit into
mainfrom
codex/worklog-portability-cleanup

Conversation

@cheshirecode

Copy link
Copy Markdown
Owner

Changes

export-setup.sh (portability)

  • Replaced BSD-specific mktemp -t with portable mktemp \${TMPDIR:-/tmp}/...
  • Works on both macOS and Linux

search.sh (portability)

  • Added command -v rg check before calling rg
  • Falls back to grep -rn when ripgrep is unavailable
  • Matches pattern already used by refactor.sh

prs.sh (dead code removal)

  • 0 callers across the entire codebase
  • Had a shell quoting bug on line 49 ($WORKLOG_GH_ORG wouldn't expand in single-quoted jq expression)
  • The pr.sh script (singular) is the maintained alternative

Verification

  • tests/run.sh static: 10 pass, 0 fail
  • tests/run.sh worklog-skill: 18 pass, 0 fail
  • shellcheck: clean

- export-setup.sh: replace BSD-specific 'mktemp -t' with portable
  'mktemp ${TMPDIR:-/tmp}/...' pattern
- search.sh: add rg fallback (command -v rg → grep -rn) for systems
  without ripgrep; shellcheck clean
- prs.sh: remove dead script (0 callers, had shell quoting bug)

Tests: static 10/10, worklog 18/18
@cheshirecode
cheshirecode merged commit bc5d530 into main Jul 30, 2026
4 checks passed
@cheshirecode
cheshirecode deleted the codex/worklog-portability-cleanup branch July 30, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant