Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/agency-agents/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "agency-agents",
"version": "0.5.0",
"version": "0.5.1",
"name": "Agency Agents",
"description": "A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables. Credits: https://github.com/msitarzewski/agency-agents.",
"documentationURL": "https://github.com/wcgomes/devcontainer-features?tab=readme-ov-file#feature-agency-agents",
Expand Down
15 changes: 12 additions & 3 deletions src/agency-agents/postStartCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,21 @@ do_install() {
fi

if [ "$(id -un)" = "$TARGET_USER" ]; then
cd "$repo_dir" && HOME="$TARGET_HOME" ./scripts/install.sh $install_args
if [ -n "$DIVISIONS" ]; then
OPENCODE_AGENTS_DIR="$opencode_agents_global" \
cd "$repo_dir" && HOME="$TARGET_HOME" ./scripts/install.sh $install_args
else
cd "$repo_dir" && HOME="$TARGET_HOME" ./scripts/install.sh $install_args
fi
else
su - "$TARGET_USER" -c "cd '$repo_dir' && HOME='$TARGET_HOME' ./scripts/install.sh $install_args"
if [ -n "$DIVISIONS" ]; then
su - "$TARGET_USER" -c "OPENCODE_AGENTS_DIR='$opencode_agents_global' cd '$repo_dir' && HOME='$TARGET_HOME' ./scripts/install.sh $install_args"
else
su - "$TARGET_USER" -c "cd '$repo_dir' && HOME='$TARGET_HOME' ./scripts/install.sh $install_args"
fi
fi

if should_install_opencode && [ -d "$opencode_agents_src" ]; then
if should_install_opencode && [ -d "$opencode_agents_src" ] && [ -z "$DIVISIONS" ]; then
log "Installing OpenCode agents globally to $opencode_agents_global..."
mkdir -p "$opencode_agents_global"
cp "$opencode_agents_src"/*.md "$opencode_agents_global/" 2>/dev/null || true
Expand Down
Loading