diff options
author | ben | 2025-04-14 17:44:46 +0200 |
---|---|---|
committer | ben | 2025-04-14 17:44:46 +0200 |
commit | 2b737973d0863cc1b867927e2f2866496b871f46 (patch) | |
tree | f11df636f19eed9c78d143292243a73dad391e45 /setup_desktop.sh | |
parent | 23b0703506d108b19b862fda0711c05a809aa5f4 (diff) | |
download | ai_env-2b737973d0863cc1b867927e2f2866496b871f46.tar.gz ai_env-2b737973d0863cc1b867927e2f2866496b871f46.tar.bz2 ai_env-2b737973d0863cc1b867927e2f2866496b871f46.tar.xz |
Diffstat (limited to 'setup_desktop.sh')
-rwxr-xr-x | setup_desktop.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/setup_desktop.sh b/setup_desktop.sh index f73f3bf..3ca40b6 100755 --- a/setup_desktop.sh +++ b/setup_desktop.sh @@ -6,10 +6,8 @@ cd "$SCRIPTPATH" || exit if [[ ! -x $(command -v aichat) ]]; then echo "aichat is not installed." - if [[ $(docker images -q aichat-build 2>/dev/null) ]]; then - container_id=$(docker create "aichat") - docker cp "${container_id}:/usr/local/cargo/bin/aichat" "./tools/" - docker rm "${container_id}" + if [[ $(docker compose ps -q aichat) ]]; then + docker compose cp "aichat:/usr/bin/aichat" "./tools/" else cargo install aichat@0.29.0 fi |