Skip to content

Commit

Permalink
fix(install.sh): ignore pipe in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rouson committed Dec 8, 2023
1 parent ed07ade commit e61a04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ if [ -z ${FC+x} ] || [ -z ${CC+x} ] || [ -z ${CXX+x} ] || [ -z ${PKG_CONFIG+x} ]
curl -L https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh -o $DEPENDENCIES_DIR/install-homebrew.sh --create-dirs
chmod u+x $DEPENDENCIES_DIR/install-homebrew.sh

if [ -p /dev/stdin ]; then
if [ -p /dev/stdin ] && [ $CI = false ]; then
echo ""
echo "Pipe detected. Installing Homebrew requires sudo privileges, which most likely will"
echo "not work if you are installing non-interactively, e.g., via 'yes | ./install.sh'."
Expand Down

0 comments on commit e61a04b

Please sign in to comment.