|
|
@ -42,7 +42,7 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
function install_macos(){
|
|
|
|
function install_macos(){
|
|
|
|
if [ ! command -v brew &> /dev/null ]; then
|
|
|
|
if [ ! command -v brew &> /dev/null ]; then
|
|
|
|
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
|
|
|
|
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
|
|
if [[ uname -m == "x86_64" ]]; then
|
|
|
|
if [[ uname -m == "x86_64" ]]; then
|
|
|
|
echo "export PATH=/usr/local/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile
|
|
|
|
echo "export PATH=/usr/local/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile
|
|
|
|
else
|
|
|
|
else
|
|
|
|