nix-installer icon indicating copy to clipboard operation
nix-installer copied to clipboard

suspended (tty input) after successful install

Open mjgallag opened this issue 1 year ago • 5 comments
trafficstars

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.

mjgallag avatar Jan 13 '24 01:01 mjgallag

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!

mjgallag avatar Jan 13 '24 18:01 mjgallag

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?

Hoverbear avatar Jan 15 '24 21:01 Hoverbear

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: @.***>

mjgallag avatar Jan 15 '24 22:01 mjgallag

Hm, okay... I wonder if it's because we use progress groups...

Hoverbear avatar Jan 15 '24 22:01 Hoverbear