1 #!/usr/bin/env sh2 # 14_public_tree — the allowlist fails closed on a new operator directory.3 set -eu4 root=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)5 dummy=$root/plugins/example/x64-cpu6 trap 'rm -rf "$dummy"' EXIT INT TERM7 mkdir -p "$dummy"8 printf 'not public\n' >"$dummy/BUNDLE.md"9 if "$root/scripts/gate-public-tree.sh" >/dev/null 2>&1; then10 echo "14_public_tree: a dummy operator bundle was accepted" >&211 exit 112 fi13 rm -rf "$root/plugins/example"14 "$root/scripts/gate-public-tree.sh"