diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-06-30 13:45:54 -0700 |
|---|---|---|
| committer | Jesse Vincent <jesse@primeradiant.com> | 2026-07-02 14:53:00 -0700 |
| commit | 371a26cf99a35dd3e367dd421d7f0f5b37183418 (patch) | |
| tree | fd4454d995457ba79697aa5c12c8d1f74848327a /scripts | |
| parent | 3bb0a3faa377b04976f85728c28d801034a3140d (diff) | |
Harden Codex package script checks
Diffstat (limited to 'scripts')
| -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" ) |
