Latest
This commit is contained in:
parent
90840bb4a9
commit
3fb2ed2a8a
5 changed files with 10 additions and 10 deletions
|
@ -338,14 +338,14 @@ ensurePackageManagerHomebrew() {
|
||||||
if ! command -v brew > /dev/null; then
|
if ! command -v brew > /dev/null; then
|
||||||
logg info 'Installing Homebrew'
|
logg info 'Installing Homebrew'
|
||||||
if command -v sudo > /dev/null && sudo -n true; then
|
if command -v sudo > /dev/null && sudo -n true; then
|
||||||
echo | bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
echo | bash -c "$(curl -fsSL --compressed https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
if [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then
|
if [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
brew install gcc
|
brew install gcc
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
logg info 'Looks like the user does not have passwordless sudo privileges. A sudo password may be required.'
|
logg info 'Looks like the user does not have passwordless sudo privileges. A sudo password may be required.'
|
||||||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?"
|
bash -c "$(curl -fsSL --compressed https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?"
|
||||||
if [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then
|
if [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
brew install gcc
|
brew install gcc
|
||||||
|
|
|
@ -201,10 +201,10 @@ ensureHomebrew() {
|
||||||
### Installs Homebrew and addresses a couple potential issues
|
### Installs Homebrew and addresses a couple potential issues
|
||||||
if command -v sudo > /dev/null && sudo -n true; then
|
if command -v sudo > /dev/null && sudo -n true; then
|
||||||
logg info "Installing Homebrew"
|
logg info "Installing Homebrew"
|
||||||
echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
echo | /bin/bash -c "$(curl -fsSL --compressed https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
else
|
else
|
||||||
logg info "Homebrew is not installed. The script will attempt to install Homebrew and you might be prompted for your password."
|
logg info "Homebrew is not installed. The script will attempt to install Homebrew and you might be prompted for your password."
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?"
|
/bin/bash -c "$(curl -fsSL --compressed https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?"
|
||||||
if [ -n "$BREW_EXIT_CODE" ]; then
|
if [ -n "$BREW_EXIT_CODE" ]; then
|
||||||
if command -v brew > /dev/null; then
|
if command -v brew > /dev/null; then
|
||||||
logg warn "Homebrew was installed but part of the installation failed. Trying a few things to fix the installation.."
|
logg warn "Homebrew was installed but part of the installation failed. Trying a few things to fix the installation.."
|
||||||
|
|
|
@ -170,10 +170,10 @@ ensureHomebrew() {
|
||||||
### Installs Homebrew and addresses a couple potential issues
|
### Installs Homebrew and addresses a couple potential issues
|
||||||
if command -v sudo > /dev/null && sudo -n true; then
|
if command -v sudo > /dev/null && sudo -n true; then
|
||||||
logg info "Installing Homebrew"
|
logg info "Installing Homebrew"
|
||||||
echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
echo | /bin/bash -c "$(curl -fsSL --compressed https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
else
|
else
|
||||||
logg info "Homebrew is not installed. The script will attempt to install Homebrew and you might be prompted for your password."
|
logg info "Homebrew is not installed. The script will attempt to install Homebrew and you might be prompted for your password."
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?"
|
/bin/bash -c "$(curl -fsSL --compressed https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?"
|
||||||
if [ -n "$BREW_EXIT_CODE" ]; then
|
if [ -n "$BREW_EXIT_CODE" ]; then
|
||||||
if command -v brew > /dev/null; then
|
if command -v brew > /dev/null; then
|
||||||
logg warn "Homebrew was installed but part of the installation failed. Trying a few things to fix the installation.."
|
logg warn "Homebrew was installed but part of the installation failed. Trying a few things to fix the installation.."
|
||||||
|
|
|
@ -20,10 +20,10 @@ ensureHomebrew() {
|
||||||
### Installs Homebrew and addresses a couple potential issues
|
### Installs Homebrew and addresses a couple potential issues
|
||||||
if command -v sudo > /dev/null && sudo -n true; then
|
if command -v sudo > /dev/null && sudo -n true; then
|
||||||
logg info "Installing Homebrew"
|
logg info "Installing Homebrew"
|
||||||
echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
echo | /bin/bash -c "$(curl -fsSL --compressed https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
else
|
else
|
||||||
logg info "Homebrew is not installed. The script will attempt to install Homebrew and you might be prompted for your password."
|
logg info "Homebrew is not installed. The script will attempt to install Homebrew and you might be prompted for your password."
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?"
|
/bin/bash -c "$(curl -fsSL --compressed https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?"
|
||||||
if [ -n "$BREW_EXIT_CODE" ]; then
|
if [ -n "$BREW_EXIT_CODE" ]; then
|
||||||
if command -v brew > /dev/null; then
|
if command -v brew > /dev/null; then
|
||||||
logg warn "Homebrew was installed but part of the installation failed. Trying a few things to fix the installation.."
|
logg warn "Homebrew was installed but part of the installation failed. Trying a few things to fix the installation.."
|
||||||
|
|
|
@ -234,10 +234,10 @@ ensureHomebrew() {
|
||||||
### Installs Homebrew and addresses a couple potential issues
|
### Installs Homebrew and addresses a couple potential issues
|
||||||
if command -v sudo > /dev/null && sudo -n true; then
|
if command -v sudo > /dev/null && sudo -n true; then
|
||||||
logg info "Installing Homebrew"
|
logg info "Installing Homebrew"
|
||||||
echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
echo | /bin/bash -c "$(curl -fsSL --compressed https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
else
|
else
|
||||||
logg info "Homebrew is not installed. The script will attempt to install Homebrew and you might be prompted for your password."
|
logg info "Homebrew is not installed. The script will attempt to install Homebrew and you might be prompted for your password."
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?"
|
/bin/bash -c "$(curl -fsSL --compressed https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?"
|
||||||
if [ -n "$BREW_EXIT_CODE" ]; then
|
if [ -n "$BREW_EXIT_CODE" ]; then
|
||||||
if command -v brew > /dev/null; then
|
if command -v brew > /dev/null; then
|
||||||
logg warn "Homebrew was installed but part of the installation failed. Trying a few things to fix the installation.."
|
logg warn "Homebrew was installed but part of the installation failed. Trying a few things to fix the installation.."
|
||||||
|
|
Loading…
Reference in a new issue