diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-06-30 13:45:54 -0700 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2026-07-02 14:56:55 -0700 |
| commit | 1a1243b6dd09525518b26fa41d1194f52b8f7de8 (patch) | |
| tree | fd4454d995457ba79697aa5c12c8d1f74848327a /scripts/package-codex-plugin.sh | |
| parent | da4125d52b80a7049c2881e7263f8b71af2172cd (diff) | |
Harden Codex package script checks
Diffstat (limited to 'scripts/package-codex-plugin.sh')
| -rwxr-xr-x | scripts/package-codex-plugin.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/package-codex-plugin.sh b/scripts/package-codex-plugin.sh index 667b7d2..60be05d 100755 --- a/scripts/package-codex-plugin.sh +++ b/scripts/package-codex-plugin.sh @@ -137,7 +137,7 @@ metadata_root_from_dir() { return 0 fi - nested="$(find "$candidate" -mindepth 2 -maxdepth 2 -type d -name skills -print | head -n 1)" + nested="$(find "$candidate" -mindepth 2 -maxdepth 2 -type d -name skills -print -quit)" if [[ -n "$nested" ]]; then dirname "$nested" return 0 @@ -229,7 +229,7 @@ TZ=UTC find "$STAGE" -exec touch -t 197001010000 {} + } >"$TAR_LIST" rm -f "$OUTPUT" - COPYFILE_DISABLE=1 tar -cnf - --format ustar --uid 0 --gid 0 --uname '' --gname '' -T "$TAR_LIST" | + COPYFILE_DISABLE=1 tar -cf - --no-recursion --format ustar --uid 0 --gid 0 --uname '' --gname '' -T "$TAR_LIST" | gzip -9n >"$OUTPUT" ) |
