mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
15 lines
472 B
Bash
Executable file
15 lines
472 B
Bash
Executable file
#!/bin/sh
|
||
|
||
set -e
|
||
|
||
workspace_directory="${XDG_DOCUMENTS_DIR:-$HOME/Documents}/Auto-GPT"
|
||
|
||
# if the data|plugins directories don’t exist auto-gpt bails
|
||
mkdir -p "$workspace_directory"/data "$workspace_directory"/plugins
|
||
|
||
# change to this directory because auto-gpt assumes it is running
|
||
# in its own checkout and is not suitable to be run from anywhere
|
||
cd "$workspace_directory"
|
||
|
||
exec "$VIRTUAL_ENV"/bin/python -m autogpt --workspace-directory="$workspace_directory" "$@"
|