nix-installer
nix-installer copied to clipboard
suspended (tty input) after successful install
If I run the following script I get suspended (tty input) after successful install (but not if I don't proceed).
#!/usr/bin/env sh
set -o errexit
set -o nounset
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
read -r test < /dev/tty
echo "${test}"
I'm trying to include the installer in a script that collects keyboard input from the user after a successful install.
I was able to work around this by adding set -o monitor to the top of this script. I'll leave this open as I'm not sure if it's expected I should have to do this but feel free to close if it makes sense. Thanks for the great installer!
Hmmm I wonder if it's because the installer is looking for user confirmation but it's not running interactively for some reason? Does --no-confirm help?
no confirm doesn’t help
On Mon, Jan 15, 2024 at 1:25 PM Ana Hobden @.***> wrote:
Hmmm I wonder if it's because the installer is looking for user confirmation but it's not running interactively for some reason? Does --no-confirm help?
— Reply to this email directly, view it on GitHub https://github.com/DeterminateSystems/nix-installer/issues/813#issuecomment-1892780117, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH7MC6FAVJHMU3BXMYDNDDYOWNE7AVCNFSM6AAAAABBY5QWMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSG44DAMJRG4 . You are receiving this because you authored the thread.Message ID: @.***>
Hm, okay... I wonder if it's because we use progress groups...