18 lines
373 B
Bash
Executable File
18 lines
373 B
Bash
Executable File
#!/bin/bash
|
|
# capabilities: beads
|
|
# description: Read a bead property
|
|
# Usage: read_bead.sh <bead-id> <property>
|
|
set -euo pipefail
|
|
|
|
if cat /etc/passwd >/dev/null 2>&1; then
|
|
echo "Error: This script must be run via execute_code tool" >&2
|
|
exit 1
|
|
fi
|
|
|
|
if [ $# -lt 2 ]; then
|
|
echo "usage: read_bead.sh <bead-id> <property>" >&2
|
|
exit 1
|
|
fi
|
|
|
|
9p read "agent/beads/$1/$2"
|