Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non interactive brew install error #24

Open
ElvisDot opened this issue Jan 27, 2024 · 0 comments
Open

Fix non interactive brew install error #24

ElvisDot opened this issue Jan 27, 2024 · 0 comments

Comments

@ElvisDot
Copy link
Owner

ElvisDot commented Jan 27, 2024

lewagon-setup/doc.sh

Lines 563 to 592 in 244735e

# TODO:
# https://github.com/ElvisDot/lewagon-setup/issues/24
# will fail with the following brew warning
#
# Warning: Running in non-interactive mode because `stdin` is not a TTY.
# Need sudo access on macOS (e.g. the user $USER needs to be an Administrator)!
#
# then the doctor will fail in the next step
# can we either invoke this with sudo or force the doctor to be interactive?
# otherwise this does not make sense
if ! /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
then
error "Error: failed to install brew."
error " Please run the following command and check the errors"
error ""
error " ${_color_WHITE}/bin/bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\""
error ""
exit 1
fi
# failed install
if [ ! -f ${HOMEBREW_PREFIX}/bin/brew ]
then
error "Error: Unexpected brew install. Try restarting your terminal"
error " if that does not help please report the issue here"
error ""
error " https://github.com/ElvisDot/lewagon-setup/issues"
error ""
exit 1
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant