This repository has been archived on 2026-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
anvillm/mcptools/remove_dependency.sh

18 lines
429 B
Bash
Executable File

#!/bin/bash
# capabilities: beads
# description: Remove a dependency
# Usage: remove_dependency.sh <mount> <child-id> <parent-id>
set -euo pipefail
if cat /etc/shadow >/dev/null 2>&1; then
echo "Error: This script must be run via execute_code tool" >&2
exit 1
fi
if [ $# -lt 3 ]; then
echo "usage: remove_dependency.sh <mount> <child-id> <parent-id>" >&2
exit 1
fi
echo "undep $2 $3" | 9p write agent/beads/$1/ctl