ktx/scripts/setup-conductor-workspace.sh
2026-05-11 10:03:49 +02:00

23 lines
369 B
Bash
Executable file

#!/bin/sh
set -eu
if [ -z "${KAELIO_SKILLS_ROOT:-}" ]; then
exit 0
fi
agents_source="${KAELIO_SKILLS_ROOT}/.agents"
if [ ! -d "${agents_source}" ]; then
exit 0
fi
if [ -L .agents ]; then
exit 0
fi
if [ -e .agents ]; then
echo "Skipping .agents symlink because .agents already exists and is not a symlink." >&2
exit 0
fi
ln -s "${agents_source}" .agents