#Can't run certain commands using $

1 messages · Page 1 of 1 (latest)

eager shadow
#

I'm making a simple management utility for my homelab, running index.ts with a certain flag should take down all of my docker containers, but using

await $docker-compose down i get bun: command not found: docker

I tried adding /usr/bin, but then I get this bun: command not found: /usr/bin/docker

any ideas?

leaden wedge
#

looks like a bug with parsing

#

where it only reads up to - for the command

#

open a github issue if there isn't already one

fading locust
#

I'm not able to reproduce this on macOS

elder spindle
#

@eager shadow did you manage to fix this ? I am currently stuck on the same error.

const response = await $`docker compose up -d db`
ShellError: Failed with exit code 1
 info: {
  "exitCode": 1,
  "stderr": "bun: command not found: docker\n",
  "stdout": ""
}