Not able to install devbox using a script

This issue has been tracked since 2022-10-07.

I'm trying to install devbox inside a docker container, however the --yes flag does not work:

curl -fsSL https://get.jetpack.io/devbox -o install-devbox.sh && chmod +x ./install-devbox.sh && ./install-devbox.sh --yes
=> ERROR [4/5] RUN curl -fsSL https://get.jetpack.io/devbox -o install-devbox.sh && chmod +x ./install-devbox.sh && ./install-de  1.1s
------
 > [4/5] RUN curl -fsSL https://get.jetpack.io/devbox -o install-devbox.sh && chmod +x ./install-devbox.sh && ./install-devbox.sh --yes:
#7 1.062 Devbox 📦 by jetpack.io
#7 1.062   Instant and predictable development environments and containers.
#7 1.062 
#7 1.062   This script downloads and installs the latest devbox binary.
#7 1.062 
#7 1.062 Confirm Installation Details
#7 1.062   Location:     /usr/local/bin/devbox
#7 1.062   Download URL: https://releases.jetpack.io/devbox
#7 1.062 
#7 1.062 ? Install devbox to /usr/local/bin (requires sudo)? [Y/n] ./install-devbox.sh: line 101: /dev/tty: No such device or address
#7 1.062 ✘ Error reading from prompt (re-run with '--yes' option if running in a script)
------
executor failed running [/bin/sh -c curl -fsSL https://get.jetpack.io/devbox -o install-devbox.sh && chmod +x ./install-devbox.sh && ./install-devbox.sh --yes]: exit code: 1
savil wrote this answer on 2022-10-12

@pomdtr thanks for reporting this. I'll take a look soon.

pomdtr wrote this answer on 2022-10-12

Thanks ! It looks like the FORCE env variable should be used instead.

More Details About Repo
Owner Name jetpack-io
Repo Name devbox
Full Name jetpack-io/devbox
Language Go
Created Date 2022-08-18
Updated Date 2023-03-31
Star Count 4960
Watcher Count 19
Fork Count 68
Issue Count 42

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date