Skip to content

Commit

Permalink
fix(brew.sh): Download script instead of piping it
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeglius committed Feb 7, 2025
1 parent c413469 commit 4fd85bd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions containerfile_scripts/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,15 @@ if ! hash git; then
fi

# Run Homebrew install script
export CI=${CI:-1}
export NONINTERACTIVE=1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ||
die "Something went wrong running Homebrew install.sh"
{
export CI=${CI:-1}
mkdir -p /var/home && \

Check warning on line 54 in containerfile_scripts/brew.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

containerfile_scripts/brew.sh#L54

Data is being piped into `bash` from a `curl` command.
mkdir -p /var/roothome &&
curl -Lo /tmp/brew-install https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh &&
chmod +x /tmp/brew-install &&
/tmp/brew-install &&
rm /tmp/brew-install
} || die "Something went wrong running Homebrew install.sh"
sync /var/home/linuxbrew
FILES_TO_FACTORY+=(/var/home/linuxbrew)

Expand Down

0 comments on commit 4fd85bd

Please sign in to comment.