mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
Add Conductor workspace setup
This commit is contained in:
parent
0d35cf8128
commit
72c0e2d1de
2 changed files with 28 additions and 0 deletions
5
conductor.json
Normal file
5
conductor.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"scripts": {
|
||||
"setup": "sh scripts/setup-conductor-workspace.sh"
|
||||
}
|
||||
}
|
||||
23
scripts/setup-conductor-workspace.sh
Executable file
23
scripts/setup-conductor-workspace.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue