summaryrefslogtreecommitdiff
path: root/scripts/package-codex-plugin.sh
diff options
context:
space:
mode:
authorDrew Ritter <drew@primeradiant.com>2026-06-30 13:45:54 -0700
committerJesse Vincent <jesse@primeradiant.com>2026-07-02 14:53:00 -0700
commit371a26cf99a35dd3e367dd421d7f0f5b37183418 (patch)
treefd4454d995457ba79697aa5c12c8d1f74848327a /scripts/package-codex-plugin.sh
parent3bb0a3faa377b04976f85728c28d801034a3140d (diff)
Harden Codex package script checks
Diffstat (limited to 'scripts/package-codex-plugin.sh')
-rwxr-xr-xscripts/package-codex-plugin.sh4
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"
)