mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
19 lines
440 B
Bash
Executable File
19 lines
440 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$1" == "--help" ]; then
|
|
echo "Usage: $0 new_agent_name"
|
|
echo "This script needs an agent name (no spaces) and it will create a new agent in the autogpts folder."
|
|
exit 0
|
|
fi
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "Error: No agent name provided. Run $0 --help for usage."
|
|
exit 1
|
|
fi
|
|
|
|
new_name=$1
|
|
cp -r autogpts/forge autogpts/$new_name
|
|
|
|
echo "New agent $new_name created and switched to the new directory in autogpts folder."
|
|
|